Git development
 help / color / mirror / Atom feed
* Code changes in merge commits
@ 2014-09-29  9:32 John Tapsell
  2014-09-29 10:01 ` John Tapsell
  0 siblings, 1 reply; 5+ messages in thread
From: John Tapsell @ 2014-09-29  9:32 UTC (permalink / raw)
  To: Git List

Hi,

  Our team just struggled with this problem, and I've created a
simple, 3 commit large, example git repository to demonstrate the
problem:

https://github.com/johnflux/ExampleEvilness2

The code:   Adds a file, adds a security fix commit, then removes the
fix during a merge.

This happened by accident in our code during a merge, but nobody
noticed, and it was not easy to track down.

In this example, you can see that the security fix was removed by doing:

$ git log -m -p

However the following do NOT show that the security fix was removed:

$ git log -m -p .
$ git log -m -p tmp.c
$ git log -c -p tmp.c

And so on. In a large code base, this a problem.

John

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

end of thread, other threads:[~2014-09-29 12:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29  9:32 Code changes in merge commits John Tapsell
2014-09-29 10:01 ` John Tapsell
2014-09-29 10:59   ` Matthieu Moy
2014-09-29 11:02     ` John Tapsell
2014-09-29 12:29     ` Duy Nguyen

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