Skip to content

Commit 552ee61

Browse files
Kirill Smelkovpatthoyts
authored andcommitted
git-gui: Fix parsing of <rev> <path-which-not-present-in-worktree>
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 2bb8c26 drivers/net/sky2.c This patch restores the original functionality in this case. Acked-by: Andrew Wong <[email protected]> Signed-off-by: Kirill Smelkov <[email protected]> Signed-off-by: Pat Thoyts <[email protected]>
1 parent f6dd784 commit 552ee61

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

git-gui.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,6 +3015,7 @@ blame {
30153015
30163016
if {$is_path} {
30173017
if {$path ne {}} usage
3018+
set path [normalize_relpath $_prefix$a]
30183019
break
30193020
} elseif {$a eq {--}} {
30203021
if {$path ne {}} {

0 commit comments

Comments
 (0)