summaryrefslogtreecommitdiff
path: root/builtin/upload-archive.c
diff options
context:
space:
mode:
authorBrandon Williams <bmwill@google.com>2017-06-14 18:07:39 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-06-15 19:56:22 (GMT)
commitdc8441fdb4598f54865a5c783d1f86c1e0bcb6dc (patch)
tree176279ca26cbd437316f434c609cd853eebca2a8 /builtin/upload-archive.c
parenta577fb5fdc53a4729eeedc2922d1461350b92f73 (diff)
downloadgit-dc8441fdb4598f54865a5c783d1f86c1e0bcb6dc.zip
git-dc8441fdb4598f54865a5c783d1f86c1e0bcb6dc.tar.gz
git-dc8441fdb4598f54865a5c783d1f86c1e0bcb6dc.tar.bz2
config: don't implicitly use gitdir or commondir
'git_config_with_options()' takes a 'config_options' struct which contains feilds for 'git_dir' and 'commondir'. If those feilds happen to be NULL the config machinery falls back to querying global repository state. Let's change this and instead use these fields in the 'config_options' struct explicilty all the time. Since the API is slightly changing to require these two fields to be set if callers want the config machinery to load the repository's config, let's change the name to 'config_with_optison()'. This allows the config machinery to not implicitly rely on any global repository state. Signed-off-by: Brandon Williams <bmwill@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/upload-archive.c')
0 files changed, 0 insertions, 0 deletions