Code

git-gui: Simplify printing of index info to update-index.
authorShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 04:35:39 +0000 (23:35 -0500)
committerShawn O. Pearce <spearce@spearce.org>
Sun, 21 Jan 2007 07:54:24 +0000 (02:54 -0500)
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>
git-gui.sh

index 954b1983e8fbac7976e7a45ce6a9f84e6721c45c..984535687cd4c24803f9c97fcd01ae80cb4c6972 100755 (executable)
@@ -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
        }