7892
if {$i >= 0} {
7893
if {[llength $ids] > 1 && $j < 0} {
7894
# comparing working directory with some specific revision
7895
- set cmd [concat | git diff-index $flags]
7895
+ set cmd [concat git diff-index $flags]
7896
if {$i == 0} {
7897
lappend cmd -R [lindex $ids 1]
7898
} else {
7900
}
7901
} else {
7902
# comparing working directory with index
7903
- set cmd [concat | git diff-files $flags]
7903
+ set cmd [concat git diff-files $flags]
7904
if {$j == 1} {
7905
lappend cmd -R
7906
}
7909
if {[package vcompare $git_version "1.7.2"] >= 0} {
7910
set flags "$flags --ignore-submodules=dirty"
7911
}
7912
- set cmd [concat | git diff-index --cached $flags]
7912
+ set cmd [concat git diff-index --cached $flags]
7913
if {[llength $ids] > 1} {
7914
# comparing index with specific revision
7915
if {$j == 0} {
7925
if {$log_showroot} {
7926
lappend flags --root
7927
}
7928
- set cmd [concat | git diff-tree -r $flags $ids]
7928
+ set cmd [concat git diff-tree -r $flags $ids]
7929
}
7930
return $cmd
7931
}
7937
if {$limitdiffs && $vfilelimit($curview) ne {}} {
7938
set cmd [concat $cmd -- $vfilelimit($curview)]
7939
}
7940
- if {[catch {set gdtf [open $cmd r]}]} return
7940
+ if {[catch {set gdtf [open |$cmd r]}]} return
7941
7942
set treepending $ids
7943
set treediff {}
8057
if {$limitdiffs && $vfilelimit($curview) ne {}} {
8058
set cmd [concat $cmd -- $vfilelimit($curview)]
8059
}
8060
- if {[catch {set bdf [open $cmd r]} err]} {
8060
+ if {[catch {set bdf [open |$cmd r]} err]} {
8061
error_popup [mc "Error getting diffs: %s" $err]
8062
return
8063
}
9080
9081
if {![info exists patchids($id)]} {
9082
set cmd [diffcmd [list $id] {-p --root}]
9083
- # trim off the initial "|"
9084
- set cmd [lrange $cmd 1 end]
9083
if {[catch {
9084
set x [eval exec $cmd | git patch-id]
9085
set patchids($id) [lindex $x 0]
9324
set newid [$patchtop.tosha1 get]
9325
set fname [$patchtop.fname get]
9326
set cmd [diffcmd [list $oldid $newid] -p]
9329
- # trim off the initial "|"
9330
- set cmd [lrange $cmd 1 end]
9327
lappend cmd >$fname &
9328
if {[catch {eval exec $cmd} err]} {
9329
error_popup "[mc "Error creating patch:"] $err" $patchtop