git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Slightly obscure merge-file inconsistency
@ 2009-05-25  0:21 Charles Bailey
  2009-05-25  0:21 ` [PATCH 1/2] merge-file fails to output anything for a degenerate merge Charles Bailey
  0 siblings, 1 reply; 5+ messages in thread
From: Charles Bailey @ 2009-05-25  0:21 UTC (permalink / raw)
  To: Johannes Schindelin, Junio C Hamano, git

This was spotted by someone on stackoverflow.com.

It seems that git merge-file will wipe the merged file in the
degenerate case when all the inputs have identical contents. As
far as I can tell this is a bug, albeit one which will never be
triggered in practice because merge-file won't ever be called on
files that are identical in base, local and remote versions.

I think that the problem is just an overzealous null check in
xdl_merge. Certainly with the fix, the test suite still passes but
there may be some use cases of xdl_merge that I'm not aware of
that rely on the current behaviour.

http://stackoverflow.com/questions/903966/

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

end of thread, other threads:[~2009-05-25  7:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-25  0:21 Slightly obscure merge-file inconsistency Charles Bailey
2009-05-25  0:21 ` [PATCH 1/2] merge-file fails to output anything for a degenerate merge Charles Bailey
2009-05-25  0:21   ` [PATCH 2/2] Change xdl_merge to generate output even for null merges Charles Bailey
2009-05-25  7:51     ` Johannes Schindelin
2009-05-25  7:52   ` [PATCH 1/2] merge-file fails to output anything for a degenerate merge Johannes Schindelin

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