git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dave Jones <davej@redhat.com>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: git@vger.kernel.org
Subject: Re: Why do we need [PATCH]?
Date: Fri, 16 Dec 2005 16:13:57 -0500	[thread overview]
Message-ID: <20051216211357.GL2821@redhat.com> (raw)
In-Reply-To: <20051216210145.GA25311@mars.ravnborg.org>

On Fri, Dec 16, 2005 at 10:01:45PM +0100, Sam Ravnborg wrote:

 > I've just applied a patch to my git tree using git-applymbox.
 > It worked like a charm as it often do.
 > But then when I did a quick check with gitk it stuck me that
 > the subject was prefixed with [PATCH].
 > I am aware that the [PATCH] in subject tell me:
 > "patch is received from somewhere and applied by me to the .git tree".
 > This is in comparsion to patches received when I merge a git tree for
 > example.
 > 
 > But with common practice to use sign-off I wonder the value of this
 > patch marker.
 > When browsing the kernel shortlog I often focus on first word in subject
 > - cause this tells me what system/drivers is changed. But with the
 >   [PATCH] marker I have to read some non-sense to see actual subject.
 > 
 > The information is redundant since metadata already tell me who is the
 > author and who committed the change.
 > So could we have it removed or if people continue to find it usefull
 > then at least hide it behind some option. Using the [PATCH] prefix is
 > not the natural thing to do with git.
 > 
 > I looked at the source and found the -k option, but adding [PATCH]
 > should not be default behaviour so this is not the correct solution.

I'm still using Linus' original 'applypatch' script, on which I think
this stuff was based, and this behaviour annoyed me too.
So I changed it to do this..

if [ -f .treename ]; then
  TREENAME=`cat .treename`
else
  TREENAME='PATCH'
fi
(echo "[$TREENAME] $SUBJECT" ; if [ -s $MSGFILE ]; then echo ; cat $MSGFILE; fi ) > $final


and then I have a .treename in say the AGP tree, containing just 'AGPGART',
and the changelogs get the prefixes that actually mean something useful.
(And those markers are invaluable when searching through history for changes)

		Dave

  reply	other threads:[~2005-12-16 21:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-16 21:01 Why do we need [PATCH]? Sam Ravnborg
2005-12-16 21:13 ` Dave Jones [this message]
2005-12-16 21:14 ` Brian Gerst
2005-12-16 21:27 ` Junio C Hamano
2005-12-16 21:42   ` Sam Ravnborg

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=20051216211357.GL2821@redhat.com \
    --to=davej@redhat.com \
    --cc=git@vger.kernel.org \
    --cc=sam@ravnborg.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).