Browse Source

git-gui: Simplify printing of index info to update-index.

During unstaging we can simplify the way we perform the output by
combining our four puts into a single call.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
maint
Shawn O. Pearce 18 years ago
parent
commit
31a8d1968e
  1. 5
      git-gui.sh

5
git-gui.sh

@ -1447,10 +1447,7 @@ proc write_update_indexinfo {fd pathList totalCnt batch msg after} {
set info [lindex $s 2] set info [lindex $s 2]
if {$info eq {}} continue if {$info eq {}} continue


puts -nonewline $fd $info puts -nonewline $fd "$info\t$path\0"
puts -nonewline $fd "\t"
puts -nonewline $fd $path
puts -nonewline $fd "\0"
display_file $path $new display_file $path $new
} }



Loading…
Cancel
Save