diff options
author | Jeff King <peff@peff.net> | 2012-02-16 03:04:05 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-02-17 07:52:41 -0800 |
commit | 0a5f57592728e7667d9e60e309f6270db9fdb67b (patch) | |
tree | 7d857ff695fae308375d680af8f3356ba299a65c /base85.c | |
parent | config: copy the return value of prefix_filename (diff) | |
download | tgif-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 'base85.c')
0 files changed, 0 insertions, 0 deletions