Re: [PATCH] git-send-email.perl: expand filename of aliasesfile
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 28, 2011, 14:47 UTC
- Message-ID
- <vpqty7wk9km.fsf@bauges.imag.fr>
- In-Reply-To
- <20110928144057.GC12586@laptop>
Cord Seele <cowose@googlemail.com> writes:
Show 9 quoted lines
> On Wed 28 Sep 2011 15:42:01 +0200, Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> wrote: >> That'd be cleaner to use >> >> git config --path sendemail.aliasesfile >> >> to let Git do the right expansion, in a way consistant with other places >> of Git. > > This means to expand it at 'git config' time?
Yes, but not the "git config" ran to set the value. The one ran internally by "git send-email" through Git::config(). You may add --get to my command line above.
> Wouldn't it be nicer to have it expanded when you run 'git > send-email'? Then you could move your ~/.gitconfig (that's where I > have my aliasesfile configured) between different accounts and it > could still work.
That works with my proposal.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/