]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/add.c
add: allow configurations to be overriden by command line
authorStephen Boyd <bebarino@gmail.com>
Thu, 18 Jun 2009 09:17:54 +0000 (02:17 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 18 Jun 2009 19:20:36 +0000 (12:20 -0700)
commited342fdea0b7fd466ed3257c5e68aa81c391b782
tree52da9af7703434bc8cb40c74e7e52e3afa4ef38c
parent90dce51584e908232ff279a6c2949ea9855dddf3
add: allow configurations to be overriden by command line

Don't call git_config after parsing the command line options, otherwise
the config settings will override any settings made by the command line.

This can be seen by setting add.ignore_errors and then specifying
--no-ignore-errors when using git-add.

Signed-off-by: Stephen Boyd <bebarino@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-add.c
t/t3700-add.sh