提交 700ea479 编写于 作者: J Junio C Hamano

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

Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 dc7b2436
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册