@matheusbsbs / matheus-bagliano / commits / c15ad650c7
Fork 0

git-gui: Auto-update any A? or M? files during rescan.

If the user has partial includes disabled then it doesn't matter what state the working directory is in; if the file has been included in the next commit its index state is A or M and we should immediately run update-index on the working directory file to bring the index in sync with the working directory. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Nov 26, 2006 at 19:46 UTC c15ad650c77ef3213d723efec4e1dca89efba6cd
1 file changed +2 -2
git-gui
+2 -2
@@ -499,8 +499,8 @@ proc rescan_done {fd buf after} {
499 set pathList [list]
500 foreach path [array names file_states] {
501 switch -- [lindex $file_states($path) 0] {
502 - AM -
503 - MM {lappend pathList $path}
502 + A? -
503 + M? {lappend pathList $path}
504 }
505 }
506 if {$pathList ne {}} {