diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2006-11-12 19:29:04 -0500 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2006-11-13 00:10:40 -0500 |
commit | aaf1085a03a53eacff1b26459d0281a133f573d5 (patch) | |
tree | 15b86e9bc20d958cc456dd30fd2fb823fb6f4990 /git-gui | |
parent | 358d8de8f3b9d09c9c4d7d43c03d33a4f60ba1da (diff) | |
download | git-aaf1085a03a53eacff1b26459d0281a133f573d5.tar.gz git-aaf1085a03a53eacff1b26459d0281a133f573d5.tar.xz |
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>
Diffstat (limited to 'git-gui')
-rwxr-xr-x | git-gui | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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} |