Re: [PATCH] git-send-email.perl: expand filename of aliasesfile
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 28, 2011, 13:42 UTC
- Message-ID
- <vpqwrcspyvq.fsf@bauges.imag.fr>
- In-Reply-To
- <20110928131307.GB12586@laptop>
Cord Seele <cowose@googlemail.com> writes:
> - open my $fh, '<', $file or die "opening $file: $!\n"; > + open my $fh, '<', glob($file) or die "opening $file: $!\n";
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.
In practice, that would imply adding %config_path_settings like the existing %config_bool_settings, and add config_path to Git.pm (again, similarly to config_bool).
-- Matthieu Moy http://www-verimag.imag.fr/~moy/