@matheusbsbs / matheus-bagliano / commits / 1ce09dd678
Fork 0

[PATCH] prefer "git COMMAND" over "git-COMMAND" in gitk

Preferring git _space_ COMMAND over git _dash_ COMMAND allows the user to have only git and gitk in their path. e.g. when git and gitk are symbolic links in a personal bin directory to the real git and gitk. Signed-off-by: Paul Mackerras <paulus@samba.org>

Brandon Casey committed Mar 19, 2007 at 18:00 UTC 1ce09dd6787c495986c75b37b07ba6bbf19b47da
1 file changed +2 -2
gitk
+2 -2
@@ -1906,7 +1906,7 @@ proc do_file_hl {serial} {
1906 } else {
1907 set gdtargs [list "-S$highlight_files"]
1908 }
1909 - set cmd [concat | git-diff-tree -r -s --stdin $gdtargs]
1909 + set cmd [concat | git diff-tree -r -s --stdin $gdtargs]
1910 set filehighlight [open $cmd r+]
1911 fconfigure $filehighlight -blocking 0
1912 fileevent $filehighlight readable readfhighlight
@@ -1958,7 +1958,7 @@ proc readfhighlight {} {
1958 }
1959 if {[eof $filehighlight]} {
1960 # strange...
1961 - puts "oops, git-diff-tree died"
1961 + puts "oops, git diff-tree died"
1962 catch {close $filehighlight}
1963 unset filehighlight
1964 }