Skip to content

Commit

Permalink
git-gui: Fix parsing of <rev> <path-which-not-present-in-worktree>
Browse files Browse the repository at this point in the history
Commit e3d06ca (git-gui: Detect full path when parsing arguments) broke

    git gui blame rev path-not-present-in-worktree

in particular this does not work anymore:

    # in linux.git
    $ git gui blame 2bb8c26242c2393b097a993ffe9b003ec9b85395 drivers/net/sky2.c

This patch restores the original functionality in this case.

Acked-by: Andrew Wong <andrew.kw.w@gmail.com>
Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
  • Loading branch information
Kirill Smelkov authored and Pat Thoyts committed Nov 13, 2012
1 parent f6dd784 commit 552ee61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions git-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3015,6 +3015,7 @@ blame {
if {$is_path} {
if {$path ne {}} usage
set path [normalize_relpath $_prefix$a]
break
} elseif {$a eq {--}} {
if {$path ne {}} {
Expand Down

0 comments on commit 552ee61

Please sign in to comment.