Re: [PATCH] Teach 'git apply' to look at $GIT_DIR/config

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Feb 17, 2007 at 01:12:52PM -0800, Junio C Hamano wrote:

> +	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);
> +	}
> +

If I read this correctly, running 'git apply' inside a git repository
will parse $GIT_DIR/config and $HOME/.gitconfig. However, outside of a
repository it will parse neither. It would make more sense to me to
still parse $HOME/.gitconfig to pick up the user's global options.

-Peff
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]