Skip to content

Commit

Permalink
Teach 'git apply' to look at $HOME/.gitconfig even outside of a repos…
Browse files Browse the repository at this point in the history
…itory

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Feb 18, 2007
1 parent dc7b243 commit 700ea47
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions builtin-apply.c
Original file line number Diff line number Diff line change
Expand Up @@ -2601,11 +2601,9 @@ int cmd_apply(int argc, const char **argv, const char *unused_prefix)

prefix = setup_git_directory_gently(&is_not_gitdir);
prefix_length = prefix ? strlen(prefix) : 0;
if (!is_not_gitdir) {
git_config(git_apply_config);
if (apply_default_whitespace)
parse_whitespace_option(apply_default_whitespace);
}
git_config(git_apply_config);
if (apply_default_whitespace)
parse_whitespace_option(apply_default_whitespace);

for (i = 1; i < argc; i++) {
const char *arg = argv[i];
Expand Down

0 comments on commit 700ea47

Please sign in to comment.