summaryrefslogtreecommitdiff
path: root/git-gui.sh
diff options
context:
space:
mode:
authorLibravatar Shawn O. Pearce <spearce@spearce.org>2007-01-20 23:35:39 -0500
committerLibravatar Shawn O. Pearce <spearce@spearce.org>2007-01-21 02:54:24 -0500
commit31a8d1968ed12c0b98c1c34d789a66f54ecbbc13 (patch)
tree5c3060a59c7bc3a134caeef8440db20f2111305a /git-gui.sh
parentgit-gui: Refactor the add to commit state filters. (diff)
downloadtgif-31a8d1968ed12c0b98c1c34d789a66f54ecbbc13.tar.xz
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>
Diffstat (limited to 'git-gui.sh')
-rwxr-xr-xgit-gui.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/git-gui.sh b/git-gui.sh
index 954b1983e8..984535687c 100755
--- a/git-gui.sh
+++ b/git-gui.sh
@@ -1447,10 +1447,7 @@ proc write_update_indexinfo {fd pathList totalCnt batch msg after} {
set info [lindex $s 2]
if {$info eq {}} continue
- puts -nonewline $fd $info
- puts -nonewline $fd "\t"
- puts -nonewline $fd $path
- puts -nonewline $fd "\0"
+ puts -nonewline $fd "$info\t$path\0"
display_file $path $new
}