Commit 784b7e2
gitk: Fix "External diff" with separate work tree
Running "External diff" to compare the index and work tree currently
brings up an empty blame view when the work tree is not the parent of
the git directory. This is because the file that is taken from the
work tree is assumed to be in
$GIT_DIR/../<repo-relative-file-name>. Fix it by feeding the diff tool
a path under $GIT_WORK_TREE instead of "$GIT_DIR/..".
Signed-off-by: Martin von Zweigbergk <martin.von.zweigbergk@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>1 parent 0a2a979 commit 784b7e2
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3364 | 3364 | | |
3365 | 3365 | | |
3366 | 3366 | | |
3367 | | - | |
| 3367 | + | |
3368 | 3368 | | |
3369 | 3369 | | |
3370 | | - | |
| 3370 | + | |
3371 | 3371 | | |
3372 | 3372 | | |
3373 | 3373 | | |
| |||
11650 | 11650 | | |
11651 | 11651 | | |
11652 | 11652 | | |
| 11653 | + | |
11653 | 11654 | | |
11654 | 11655 | | |
11655 | 11656 | | |
| |||
0 commit comments