From: Greg KH <greg@kroah•com>
To: Junio C Hamano <junkio@cox•net>
Cc: git@vger•kernel.org
Subject: Re: diffstat wierdness with 'git format-patch' output
Date: Mon, 13 Feb 2006 22:52:24 -0800 [thread overview]
Message-ID: <20060214065224.GA20541@kroah.com> (raw)
In-Reply-To: <20060214064256.GA19667@kroah.com>
On Mon, Feb 13, 2006 at 10:42:56PM -0800, Greg KH wrote:
> On Mon, Feb 13, 2006 at 10:34:20PM -0800, Greg KH wrote:
> > > I personally find it useful to see the trend of version of tools
> > > people use on the public mailing list, and that was the primary
> > > reason it is there.
> >
> > Why not just add a "X-Git-Version: 1.2.0" flag to the message instead?
>
> And here's a patch that does just that.
>
> -----------------
>
> Subject: change git-format-patch to put the git version in the mail header
>
> This is more like other tools that create mail messages, and fixes an
> issue of the diffstat program thinking that an extra line was removed
> from the patch.
>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse•de>
>
> diff --git a/git-format-patch.sh b/git-format-patch.sh
> index e54c9e4..5f6a921 100755
> --- a/git-format-patch.sh
> +++ b/git-format-patch.sh
> @@ -216,6 +216,7 @@ while (<FH>) {
>
> print "From: $author_ident\n";
> print "Date: $author_date\n";
> + print "X-Git-Version: @@GIT_VERSION@@\n";
Hm, git-send-email doesn't see this, so it doesn't get sent out if you
use that tool.
I can fix that to just put the version number in the message too, like
it adds the "X-Mailer" field, if people think this is really worth it...
thanks,
greg k-h
next prev parent reply other threads:[~2006-02-14 6:52 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-14 5:54 diffstat wierdness with 'git format-patch' output Greg KH
2006-02-14 5:56 ` Greg KH
2006-02-14 6:09 ` Junio C Hamano
2006-02-14 6:34 ` Greg KH
2006-02-14 6:37 ` Junio C Hamano
2006-02-14 6:44 ` Greg KH
2006-02-14 6:42 ` Greg KH
2006-02-14 6:52 ` Greg KH [this message]
2006-02-14 7:10 ` Junio C Hamano
2006-02-18 0:34 ` Greg KH
2006-02-14 22:30 ` Fredrik Kuivinen
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=20060214065224.GA20541@kroah.com \
--to=greg@kroah$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=junkio@cox$(echo .)net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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