You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If tig is started in a subdirectory of the project, doing tig blame foo.c will work just fine, reading subdir/foo.c. But when using REQ_PARENT to re-blame starting at the parent, tig pulls the filename from git's blame output, which has the full pathname. As a result, we end up trying to blame subdir/subdir/foo.c.
You can replicate easily in tig with:
$ cd contrib
$ tig blame release.sh
and then using , to blame the parent of any modified line (e.g., the copyright line near the top). Tig will die with tig: No blame exist for contrib/contrib/release.sh.
The text was updated successfully, but these errors were encountered:
When running "tig blame" from within a subdirectory of a repository, the
"B" and "," commands will fail with "No blame exist for...". The problem
is that the current directory name gets prepended to the filename if
view->prev == NULL, but it should not be in this case.
Steps to reproduce:
1) checkout a copy of tig
2) cd contrib
3) run "tig blame tig-completion.bash"
4) press B
5) observe "tig: No blame exist for contrib/contrib/tig-completion.bash"
Also fixes another minor bug in an expression.
Signed-off-by: Jonas Fonseca <[email protected]>
If tig is started in a subdirectory of the project, doing
tig blame foo.c
will work just fine, readingsubdir/foo.c
. But when using REQ_PARENT to re-blame starting at the parent, tig pulls the filename from git's blame output, which has the full pathname. As a result, we end up trying to blamesubdir/subdir/foo.c
.You can replicate easily in tig with:
$ cd contrib $ tig blame release.sh
and then using
,
to blame the parent of any modified line (e.g., the copyright line near the top). Tig will die withtig: No blame exist for contrib/contrib/release.sh
.The text was updated successfully, but these errors were encountered: