git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git blame and cherry-picking
@ 2008-08-06 22:18 Steven Grimm
  2008-08-07  6:09 ` Alex Riesen
  2008-08-07 17:53 ` Avery Pennarun
  0 siblings, 2 replies; 7+ messages in thread
From: Steven Grimm @ 2008-08-06 22:18 UTC (permalink / raw)
  To: Git Users List

What, if any, is the approved way to get git blame to follow cherry- 
picked changes? Right now blame is good about showing you the actual  
responsible revision and author in the case of merges, but if you  
cherry-pick a change with "-n" (to test before committing), the  
modifications are attributed to the person who did the cherry-pick  
instead of the cherry-picked revision's author. Even without the "-n"  
option, the changes are attributed to the cherry-pick *revision*  
instead of the original one.

My horrible hack workaround for now is to temporarily put a grafts  
entry in place to make git think the cherry-pick revisions I'm  
interested in are actually merges. That requires me to know that a  
given revision is a cherry-pick and I have to be careful to remove my  
fake graft afterwards. What's more, it can result in some strange and  
seemingly nonsensical "merge" topologies if, e.g., a newer change is  
cherry-picked before an older one.

Surely there must be a better way...?

-Steve

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-08-07 18:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2008-08-07 17:53 ` Avery Pennarun

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).