Re: [PATCH v2] Support "core.excludesfile = ~/.gitignore"
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:45:14
Karl Chen [off-list ref] writes:
quoted
quoted
quoted
quoted
quoted
On 2008-08-26 17:25 PDT, Jeff King writes:Jeff> 2. There is no documentation update. Relative paths and $ENVVARS would need explanation; not sure what needs to be said about ~user since the new behavior is what people expect to just work. Would it go in git-config.txt if something were added?
Traditionally, we never has interpret ~/ or ~user/. Users expected that
they need to spell it like:
[core]
excludesfile = "/home/joe/.my-ignore-pattern"
Especially since this is called "variables", it is natural, without
explanation, to expect this not to work, just like this use of a variable
won't work:
$ EDITOR='~/bin/editor' ;# notice the single quote
$ export EDITOR;
$ git commit -a
fatal: exec ~/bin/editor failed.
Your patch improves the situation and now allow:
[core]
excludesfile = "~/.my-ignore-pattern"
If you do not document that it is now possible for this particular
configuration variable, the users will never know.