git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Yann Droneaud <yann@droneaud.fr>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: wishlist: git send-email improvement
Date: Tue, 09 Mar 2010 18:49:07 +0100	[thread overview]
Message-ID: <1268156947.4277.26.camel@localhost> (raw)
In-Reply-To: <7veijtz9kn.fsf@alter.siamese.dyndns.org>

Le mardi 09 mars 2010 à 09:30 -0800, Junio C Hamano a écrit :
> Yann Droneaud <yann@droneaud.fr> writes:
> 
> > Here's a little wishlist for send-email
> >
> > - Use From: field extracted from patch:
> >   If there's no configuration for user.email and From: field is 
> >   different than default auto generated From: address, 
> >   git send-email should use the one in the patch as default.
> 
> I cannot judge how sensible this change is; please justify the motivation
> by adding "it currently does _this_, which is not good for _such and such
> reasons_; instead" between the third and the fourth line.
> 

Sometimes, i'm too lazy to setup a valid git config user.email, 
so i'm commiting with a default, broken author name which get used later
by git format-patch to fill the From: field. 
Each time I'm doing this, I'm manually fixing the From: field in the
mbox file, hoping it will be used by git send-email, and each time I'm
disappointing to see git send-email use the broken author name as
default value.
Obviously, the proper fix would be for me to remember to set up git
config user.email before issuing any command ... but the so-called human
nature tells me it's definitely not my fault, the tool get it wrong and
should be fixed :) 
Perhaps I should learn to use git send-email --from instead.

> > - Use To: field extracted from patch
> >   I've setup format-patch to add a default To: field with
> >   format.headers="To: xxx@yyy". But git send-email did not use it and 
> >   ask for a To: value.
> >   If there's no --to or sendmail.to, send-email should use To: value 
> >   extracted from patch and ask for user confirmation.
> 
> With the recent addition of format.to that is cooking somewhere, I think
> this one is probably sensible.

Great.

Thanks for your time.

-- 
Yann Droneaud

  reply	other threads:[~2010-03-09 17:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-09 17:21 wishlist: git send-email improvement Yann Droneaud
2010-03-09 17:30 ` Junio C Hamano
2010-03-09 17:49   ` Yann Droneaud [this message]
2010-03-09 17:55     ` Yann Droneaud
2010-03-09 19:30       ` "L. Alberto Giménez"
2010-03-13 13:06         ` Yann Droneaud

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=1268156947.4277.26.camel@localhost \
    --to=yann@droneaud.fr \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /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).