Git development
 help / color / mirror / Atom feed
* Interesting git-format-patch bug
@ 2012-11-26 21:33 Olsen, Alan R
  2012-11-26 22:56 ` Junio C Hamano
  0 siblings, 1 reply; 5+ messages in thread
From: Olsen, Alan R @ 2012-11-26 21:33 UTC (permalink / raw)
  To: git@vger.kernel.org; +Cc: Olsen, Alan R

I found an interesting bug in git-format-patch.

Say you have a branch A.  You create branch B and add a patch to it. You then merge that patch into branch A. After the merge, some other process (we will call it 'gerrit') uses annotate and changes the comment on the patch that exists on branch B.

Now someone runs git-format-patch for the last n patches on branch A.  You should just get the original patch that was merged over to branch A.  What you get is the patch that was merged to branch A *and* the patch with the modified commit comment on branch B. (Double the patches, double the clean-up...)

This is should be one of those rare corner case "don't do that" occurrences. Unfortunately it does happen once in a while on our branches and it screws up some of the automated processes we rely on.

Is there a way around that (other than "don't") or can this be fixed?

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

end of thread, other threads:[~2012-11-27 20:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 21:33 Interesting git-format-patch bug Olsen, Alan R
2012-11-26 22:56 ` Junio C Hamano
2012-11-27  4:15   ` Perry Hutchison
2012-11-27 17:29     ` Junio C Hamano
2012-11-27 20:31     ` Olsen, Alan R

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox