@matheusbsbs / matheus-bagliano / commits / 700ea47936
Fork 0

Teach 'git apply' to look at $HOME/.gitconfig even outside of a repository

Signed-off-by: Junio C Hamano <junkio@cox.net>

Junio C Hamano committed Feb 17, 2007 at 18:12 UTC 700ea47936e393a217f4174f80a19aa01f698b56
1 file changed +3 -5
builtin-apply.c
+3 -5
@@ -2601,11 +2601,9 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)
2601
2602 prefix = setup_git_directory_gently(&is_not_gitdir);
2603 prefix_length = prefix ? strlen(prefix) : 0;
2604 - if (!is_not_gitdir) {
2605 - git_config(git_apply_config);
2606 - if (apply_default_whitespace)
2607 - parse_whitespace_option(apply_default_whitespace);
2608 - }
2604 + git_config(git_apply_config);
2605 + if (apply_default_whitespace)
2606 + parse_whitespace_option(apply_default_whitespace);
2607
2608 for (i = 1; i < argc; i++) {
2609 const char *arg = argv[i];