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>
This commit is contained in:
parent
f70c3a2cac
commit
c15ad650c7
4
git-gui
4
git-gui
@ -499,8 +499,8 @@ proc rescan_done {fd buf after} {
|
|||||||
set pathList [list]
|
set pathList [list]
|
||||||
foreach path [array names file_states] {
|
foreach path [array names file_states] {
|
||||||
switch -- [lindex $file_states($path) 0] {
|
switch -- [lindex $file_states($path) 0] {
|
||||||
AM -
|
A? -
|
||||||
MM {lappend pathList $path}
|
M? {lappend pathList $path}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if {$pathList ne {}} {
|
if {$pathList ne {}} {
|
||||||
|
Loading…
Reference in New Issue
Block a user