If you have an ambiguous ref, i.e. a file in the working directory bears the same name, you have to use "--" at the end to disambiguate ref from file. This works with "git rev-list". Make it work with gitk, too. Noticed by Uwe Kleine-König. Signed-off-by: Johannes Schindelin <johannes.schindelin@xxxxxx> --- Uwe, did your name come out right? I recently had to manually fix pine, and realised only then what a tedious work it is to teach pine about utf-8. Hopefully it worked out. gitk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gitk b/gitk index 2d6a6ef..a248f5a 100755 --- a/gitk +++ b/gitk @@ -7440,7 +7440,7 @@ set cmdline_files {} set i [lsearch -exact $revtreeargs "--"] if {$i >= 0} { set cmdline_files [lrange $revtreeargs [expr {$i + 1}] end] - set revtreeargs [lrange $revtreeargs 0 [expr {$i - 1}]] + set revtreeargs [lrange $revtreeargs 0 $i] } elseif {$revtreeargs ne {}} { if {[catch { set f [eval exec git rev-parse --no-revs --no-flags $revtreeargs] -- 1.5.3.rc0.2640.g59df9-dirty