Skip to content

Commit

Permalink
[PATCH] prefer "git COMMAND" over "git-COMMAND" in gitk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Brandon Casey authored and Paul Mackerras committed Mar 21, 2007
1 parent e7a0919 commit 1ce09dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gitk
Original file line number Diff line number Diff line change
Expand Up @@ -1906,7 +1906,7 @@ proc do_file_hl {serial} {
} else {
set gdtargs [list "-S$highlight_files"]
}
set cmd [concat | git-diff-tree -r -s --stdin $gdtargs]
set cmd [concat | git diff-tree -r -s --stdin $gdtargs]
set filehighlight [open $cmd r+]
fconfigure $filehighlight -blocking 0
fileevent $filehighlight readable readfhighlight
Expand Down Expand Up @@ -1958,7 +1958,7 @@ proc readfhighlight {} {
}
if {[eof $filehighlight]} {
# strange...
puts "oops, git-diff-tree died"
puts "oops, git diff-tree died"
catch {close $filehighlight}
unset filehighlight
}
Expand Down

0 comments on commit 1ce09dd

Please sign in to comment.