git-gui: Sort the list of paths being updated in the index.
[gitweb.git] / git-gui
diff --git a/git-gui b/git-gui
index 3f74fbb0764edf0260e292ec26cc8d6fb482edd0..b1a90e66616f0b0c5ff6cb97c77141e04d4e01f4 100755 (executable)
--- a/git-gui
+++ b/git-gui
@@ -1159,6 +1159,7 @@ proc update_index {pathList} {
 
        set update_index_cp 0
        set update_index_rsd 0
+       set pathList [lsort $pathList]
        set totalCnt [llength $pathList]
        set batch [expr {int($totalCnt * .01) + 1}]
        if {$batch > 25} {set batch 25}