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

git-gui: Sort the list of paths being updated in the index.

Its a little surprising to see the UI update the icons for files in random order, due to the fact that the files are updating in the order they appear within the array (which is based on a hash function and not order). So sort the list of files before we send any to update-index so the order of operation is means something to the user. Signed-off-by: Shawn O. Pearce <spearce@spearce.org>

Shawn O. Pearce committed Nov 12, 2006 at 19:29 UTC aaf1085a03a53eacff1b26459d0281a133f573d5
1 file changed +1
git-gui
+1
@@ -1159,6 +1159,7 @@ proc update_index {pathList} {
1159
1160 set update_index_cp 0
1161 set update_index_rsd 0
1162 + set pathList [lsort $pathList]
1163 set totalCnt [llength $pathList]
1164 set batch [expr {int($totalCnt * .01) + 1}]
1165 if {$batch > 25} {set batch 25}