mirror of
https://github.com/git/git.git
synced 2024-11-23 18:05:29 +08:00
b92266b79c
The `read_early_config()` function can be used to read configuration where a repository has not yet been set up. As such, it is optional whether or not `the_repository` has already been initialized. If it was initialized we use its commondir and gitdir. If not, the function will try to detect the Git directories by itself and, if found, also parse their config files. This means that we implicitly rely on `the_repository`. Make this dependency explicit by passing a `struct repository`. This allows us to again drop the `USE_THE_REPOSITORY_VARIABLE` define in "config.c". Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com> |
||
---|---|---|
.. | ||
tr2_cfg.c | ||
tr2_cfg.h | ||
tr2_cmd_name.c | ||
tr2_cmd_name.h | ||
tr2_ctr.c | ||
tr2_ctr.h | ||
tr2_dst.c | ||
tr2_dst.h | ||
tr2_sid.c | ||
tr2_sid.h | ||
tr2_sysenv.c | ||
tr2_sysenv.h | ||
tr2_tbuf.c | ||
tr2_tbuf.h | ||
tr2_tgt_event.c | ||
tr2_tgt_normal.c | ||
tr2_tgt_perf.c | ||
tr2_tgt.h | ||
tr2_tls.c | ||
tr2_tls.h | ||
tr2_tmr.c | ||
tr2_tmr.h |