All of lore.kernel.org
 help / color / mirror / Atom feed
* Status of conflicted files resolved with rerere
@ 2010-08-12 21:28 Magnus Bäck
  2010-08-12 21:36 ` Avery Pennarun
  0 siblings, 1 reply; 16+ messages in thread
From: Magnus Bäck @ 2010-08-12 21:28 UTC (permalink / raw)
  To: git

I played around with git rerere today and was surprised by the results.
When a conflict has been resolved automatically by rerere, the file
isn't added to the index like other files are where Git just used one of
the regular merge resolution algorithms. What's worse, if git mergetool
is invoked -- which is what I normally do when git merge needs help --
it has no idea that the file actually has been merged already, and
launches the merge tool with the three files involved in the merge. If
the user hasn't been paying attention to each line of the git merge
output (stating the files who were automatically resolved) it's easy to
trash rerere's work.

Would it make sense for git merge to add rerere'd files (where all hunks
were recognized and resolved) to the index automatically? That would
make it possible for the user to run git mergetool without reading every
single line of output from previous commands just to figure out which
files should be added to the index straight off and which files require
merging.

For users resolving conflicts by editing the file and fiddling with the
<<<<<<<<< marks etc such a change wouldn't make that big difference, but
for mergetool users it seems like a quite useful improvement. Or is
there something I'm failing to grasp here? This is on Git 1.7.0.3 by the
way.

-- 
Magnus Bäck                      Opinions are my own and do not necessarily
SW Configuration Manager         represent the ones of my employer, etc.
Sony Ericsson

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

end of thread, other threads:[~2010-08-20 15:26 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-12 21:28 Status of conflicted files resolved with rerere Magnus Bäck
2010-08-12 21:36 ` Avery Pennarun
2010-08-13 17:19   ` Jay Soffian
2010-08-15  2:24   ` David Aguilar
2010-08-15  6:59     ` Junio C Hamano
2010-08-15 16:00       ` Magnus Bäck
2010-08-17  9:22       ` [PATCH] mergetool: Skip autoresolved paths David Aguilar
2010-08-19 10:02         ` Thomas Rast
2010-08-20  3:52           ` David Aguilar
2010-08-20  9:57             ` Charles Bailey
2010-08-20 10:09               ` Jonathan Nieder
2010-08-20 11:17             ` [PATCH] mergetool: Remove explicit references to /dev/tty Charles Bailey
2010-08-20 12:27               ` Jonathan Nieder
2010-08-20 13:50                 ` Charles Bailey
2010-08-20 14:19                   ` Jonathan Nieder
2010-08-20 15:25                 ` [PATCH v2] " Charles Bailey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.