Shorten and simplify sendemail.alias* configuration variables.
PATCH 1/1 Shorten and simplify sendemail.alias* configuration variables.
I find it more consistent and less error prone to have aliasfile instead of aliasesfile and aliastype instead of aliasfiletype.
Documentation is also updated to reflect the changes.
--- Documentation/git-send-email.txt | 8 ++++---- git-send-email.perl | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-)
Documentation/git-send-email.txt +4 -4
@@ -192,12 +192,12 @@ sendemail.identity:: identities and to hoist sensitive authentication information out of the repository and into the global configuration file. -sendemail.aliasesfile:: +sendemail.aliasfile:: To avoid typing long email addresses, point this to one or more - email aliases files. You must also supply 'sendemail.aliasfiletype'. + email aliases files. You must also supply 'sendemail.aliastype'. -sendemail.aliasfiletype:: - Format of the file(s) specified in sendemail.aliasesfile. Must be +sendemail.aliastype:: + Format of the file(s) specified in sendemail.aliasfile. Must be one of 'mutt', 'mailrc', 'pine', or 'gnus'. sendemail.to::
git-send-email.perl +2 -2
@@ -203,9 +203,9 @@ my %config_settings = ( "smtppass" => \$smtp_authpass, "to" => \@to, "cccmd" => \$cc_cmd, - "aliasfiletype" => \$aliasfiletype, + "aliastype" => \$aliasfiletype, "bcc" => \@bcclist, - "aliasesfile" => \@alias_files, + "aliasfile" => \@alias_files, "suppresscc" => \@suppress_cc, );
Signature · 1 line
1.5.4.4.685.g64f14.dirty
Quoted 2 lines · Xavier Maillard
I find it more consistent and less error prone to have aliasfile instead of aliasesfile and aliastype instead of aliasfiletype.
I don't think that justifies breaking existing configs (which I assume it does).
Gruesse,
Signature · 2 lines
Frank Lichtenheld <[email protected]> www: http://www.djpig.de/
Quoted 2 lines · Xavier Maillard
I find it more consistent and less error prone to have aliasfile instead of aliasesfile and aliastype instead of aliasfiletype.
I don't think that justifies breaking existing configs (which I assume it does).
Yes it is likely to break configs after this patch has been applied. The m;ore confusing part in the current config variables is the *aliases* (plural) of the _aliasesfile_ variable. Actually, I am pretty sure, many people did not notice this plural form at first, so did I :)
Anyway, this is just a proposition of changes. Feel free not to apply it at all.
Regards
Xavier
Signature · 3 lines
http://www.gnu.org http://www.april.org http://www.lolica.org