Re: [PATCH] git-send-email.perl: expand filename of aliasesfile

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: [PATCH] git-send-email.perl: expand filename of aliasesfile

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:52:07

Cord Seele [off-list ref] 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/

Re: [PATCH] git-send-email.perl: expand filename of aliasesfile

From: Cord Seele <hidden>
Date: 2016-06-15 22:52:08

On Wed 28 Sep 2011 15:42:01 +0200, Matthieu Moy [off-list ref] wrote:
Cord Seele [off-list ref] writes:
quoted
-		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.
This means to expand it at 'git config' time? 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.

-- Cord
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help