aboutsummaryrefslogtreecommitdiff
path: root/builtin-config.c
diff options
context:
space:
mode:
authorFelipe Contreras <felipe.contreras@gmail.com>2009-02-21 02:48:55 +0200
committerJunio C Hamano <gitster@pobox.com>2009-02-21 20:35:50 -0800
commitaa387407914a574d41df4d64328498d093337ccd (patch)
tree724fbea0a42d0cf829df0497ff6f21186cc8bedb /builtin-config.c
parent414f2e5337b0b78a47f021cb734e9ba4934c0b28 (diff)
downloadgit-aa387407914a574d41df4d64328498d093337ccd.tar.gz
git-aa387407914a574d41df4d64328498d093337ccd.tar.xz
git_config(): not having a per-repo config file is not an error
Currently git_config() returns an error if there is no repo config file available (cwd is not a git repo); it will correctly parse the system and global config files, but still return an error. It doesn't affect anything else since almost nobody is checking for the return code (with the exception of 'git remote update'). A reorganization in 'git config' would benefit from being able to properly detect errors in git_config() without the noise generated when cwd is not a git repo. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin-config.c')
0 files changed, 0 insertions, 0 deletions