From: Thomas Rast <trast@student.ethz.ch>
To: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Cc: Pierre Habouzit <madcoder@debian.org>, <pierre.habouzit@m4x.org>,
<git@vger.kernel.org>
Subject: Re: git-send-email: bug with sendemail.multiedit
Date: Tue, 10 Jan 2012 10:56:58 +0100 [thread overview]
Message-ID: <87sjjnlw2d.fsf@thomas.inf.ethz.ch> (raw)
In-Reply-To: <1AC16B4B-8376-4A50-A900-BB8E704FAB82@gmail.com> (Jean-Francois Dagenais's message of "Mon, 9 Jan 2012 14:09:30 -0500")
Jean-Francois Dagenais <jeff.dagenais@gmail.com> writes:
> Bonjour Pierre! ... and all git developers!
>
> I think there is a bug with git-send-email.perl's evaluation of the sendemail.multiedit config variable.
>
> I was only able to make the "do_edit()" function detect it as false by setting the variable to "0" instead
> of "false", like so:
>
> git config --global sendemail.multiedit 0
>
> otherwise do_edit evaluates it as true and invokes the editor with all files as argument.
The patch below looks like the obvious fix. Perhaps you can test it?
diff --git i/git-send-email.perl w/git-send-email.perl
index d491db9..7ac0a7d 100755
--- i/git-send-email.perl
+++ w/git-send-email.perl
@@ -210,6 +210,7 @@ sub do_edit {
"signedoffbycc" => [\$signed_off_by_cc, undef],
"signedoffcc" => [\$signed_off_by_cc, undef], # Deprecated
"validate" => [\$validate, 1],
+ "multiedit" => [\$multiedit, undef],
);
my %config_settings = (
@@ -227,7 +228,6 @@ sub do_edit {
"bcc" => \@bcclist,
"suppresscc" => \@suppress_cc,
"envelopesender" => \$envelope_sender,
- "multiedit" => \$multiedit,
"confirm" => \$confirm,
"from" => \$sender,
"assume8bitencoding" => \$auto_8bit_encoding,
--
Thomas Rast
trast@{inf,student}.ethz.ch
prev parent reply other threads:[~2012-01-10 9:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-09 19:09 git-send-email: bug with sendemail.multiedit Jean-Francois Dagenais
2012-01-09 22:55 ` Jeff King
2012-01-09 23:15 ` Junio C Hamano
2012-01-10 14:23 ` Jean-Francois Dagenais
2012-01-10 9:56 ` Thomas Rast [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sjjnlw2d.fsf@thomas.inf.ethz.ch \
--to=trast@student.ethz.ch \
--cc=git@vger.kernel.org \
--cc=jeff.dagenais@gmail.com \
--cc=madcoder@debian.org \
--cc=pierre.habouzit@m4x.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).