aboutsummaryrefslogtreecommitdiff
path: root/block-sha1
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-02-16 03:04:05 -0500
committerJunio C Hamano <gitster@pobox.com>2012-02-17 07:52:41 -0800
commit0a5f57592728e7667d9e60e309f6270db9fdb67b (patch)
tree7d857ff695fae308375d680af8f3356ba299a65c /block-sha1
parent839de2527258879aa21ae7ad425353f06dbb4717 (diff)
downloadgit-0a5f57592728e7667d9e60e309f6270db9fdb67b.tar.gz
git-0a5f57592728e7667d9e60e309f6270db9fdb67b.tar.xz
config: teach git_config_set_multivar_in_file a default path
The git_config_set_multivar_in_file function takes a filename argument to specify the file into which the values should be written. Currently, this value must be non-NULL. Callers which want to write to the default location must use the regular, non-"in_file" version, which will either write to config_exclusive_filename, or to the repo config if the exclusive filename is NULL. Let's migrate the "default to using repo config" logic into the "in_file" form. That will let callers get the same default-if-NULL behavior as one gets with config_exclusive_filename, but without having to use the global variable. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'block-sha1')
0 files changed, 0 insertions, 0 deletions