git-gui: Enable resolution of merge conflicts.
authorShawn O. Pearce <spearce@spearce.org>
Mon, 27 Nov 2006 00:45:39 +0000 (19:45 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Mon, 27 Nov 2006 05:48:49 +0000 (00:48 -0500)
If a file has a merge conflict (index state = U) the user will need to
run update-index on that file to resolve all stages down to stage 0,
by including the file in the working directory.

Like core Git we'll just trust the user that their resolution is
correct, and that they didn't just include the file into the commit
while merge conflicts still exist within the file.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui

diff --git a/git-gui b/git-gui
index 09fc40aaf8e24059f8d2d3632a94011b7407c434..0b0f1e3e7030fb7459af7da18ef827d3d04d58a2 100755 (executable)
--- a/git-gui
+++ b/git-gui
@@ -1502,10 +1502,13 @@ proc write_update_index {fd pathList totalCnt batch msg after} {
                switch -glob -- [lindex $file_states($path) 0] {
                AD -
                MD -
+               UD -
                _D {set new DD}
 
                _M -
                MM -
+               UM -
+               U_ -
                M_ {set new M_}
 
                _O -