git-gui: Correct disappearing unstaged files.
A prior commit tried to use the old index state for the old working directory state during a UI refresh of a file. This caused files which were being unstaged (and thus becoming unmodified) to drop out of the working directory side of the display, at least until the user performed a rescan to force the UI to redisplay everything. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Shawn O. Pearce committed
Jan 21, 2007 at 13:25 UTC
a4b1786b954917294483feb176e6ca473e01b615
1 file changed
+1
-1
git-gui.sh
+1
-1
@@ -1336,7 +1336,7 @@ proc display_file {path state} {
1336
if {[string index $old_m 0] eq {U}} {
1337
set o U
1338
} else {
1339
- set o [string index $old_m 0]
1339
+ set o [string index $old_m 1]
1340
}
1341
if {[string index $new_m 0] eq {U}} {
1342
set n U