From: Jeff King <peff@peff.net>
To: Steven Grimm <koreth@midwinter.com>
Cc: Alex Riesen <raa.lkml@gmail.com>, git@vger.kernel.org
Subject: Re: git blame and cherry-picking
Date: Thu, 7 Aug 2008 14:49:29 -0400 [thread overview]
Message-ID: <20080807184929.GA11691@sigill.intra.peff.net> (raw)
In-Reply-To: <AA6BDC98-8800-4031-8C8F-A4BD326BEC1E@midwinter.com>
On Thu, Aug 07, 2008 at 11:37:02AM -0700, Steven Grimm wrote:
> No, of course not. But one might want to show the original commit's
> author instead of the name of the person who did the cherry pick. That's
> mostly what I'm looking for here; knowing where the change originally came
> from in terms of the revision graph is occasionally interesting but not
> nearly as important.
OK. I think that is a cherry-pick -n issue, then, as you mention below.
> One could argue that the real issue here is that while "git cherry-pick"
> preserves the original author and doesn't have the misattribution problem,
> "git cherry-pick -n" discards the original commit's attribution (though it
> does keep the commit message). Obviously git doesn't necessarily know
> whether the cherry-picker made substantial changes before committing and
> should truly be considered the author, but one of the use cases for the
> "-n" option is a simple "make sure you don't commit totally broken
> revisions" where there is little to no additional editing of the patch and
> keeping the original author would support that use case better.
I don't think it would be hard to stuff the cherry-picked commit's info
somewhere and to pull it out during git-commit. git-am and git-rebase -i
are already doing something similar. The harder question is what should
be done with multiple "git cherry-pick -n" invocations with different
authors?
I haven't looked closely at the git-sequencer stuff, but I wonder if
some of this will come with it for free. My impression is that the
prototype is built on _top_ of cherry-pick, but that the C version will
not be, and that cherry-pick can then be implemented in terms of the
sequencer.
-Peff
next prev parent reply other threads:[~2008-08-07 18:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-06 22:18 git blame and cherry-picking Steven Grimm
2008-08-07 6:09 ` Alex Riesen
2008-08-07 18:22 ` Jeff King
2008-08-07 18:37 ` Steven Grimm
2008-08-07 18:49 ` Junio C Hamano
2008-08-07 18:49 ` Jeff King [this message]
2008-08-07 17:53 ` Avery Pennarun
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=20080807184929.GA11691@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=koreth@midwinter.com \
--cc=raa.lkml@gmail.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).