From: Junio C Hamano Date: Tue, 17 Nov 2009 06:22:21 GMT Subject: Re: [PATCH] Expand ~ and ~user in core.excludesfile, commit.template Message-ID: <7viqd9isbm.fsf@alter.siamese.dyndns.org> In-Reply-To: Jakub Narebski writes: >> diff --git a/Documentation/config.txt b/Documentation/config.txt >> index d1e2120..c37b51d 100644 >> --- a/Documentation/config.txt >> +++ b/Documentation/config.txt >> @@ -380,7 +380,8 @@ Common unit suffixes of 'k', 'm', or 'g' are supported. >> core.excludesfile:: >> In addition to '.gitignore' (per-directory) and >> '.git/info/exclude', git looks into this file for patterns >> - of files which are not meant to be tracked. See >> + of files which are not meant to be tracked. "~" and "~user" >> + are expanded to the user's home directory. See >> linkgit:gitignore[5]. >> >> core.editor:: > > It would be nice to have an option to git-config which would do such > expansion, as a separate type similar to --int and --bool, e.g.: > > git config --path section.key > > so that not only core.excludesfile could use this new feature, but for > example also core.worktree, commit.template, gitcvs.logfile, > mailmap.file, and perhaps also *.receivepack and *.uploadpack What should "git config -l" do for these (and core.excludesfile)?