diff options
| author | Kyle Meyer <kyle@kyleam.com> | 2021-12-15 00:59:35 -0500 |
|---|---|---|
| committer | Kyle Meyer <kyle@kyleam.com> | 2021-12-15 01:03:48 -0500 |
| commit | 65c4485e19bf570ebcb81fbaa6352c4e94bb05da (patch) | |
| tree | c672be7e4df22c3b07ee4d6bb04f9cf637482513 /docs/BACKERS.md | |
| parent | 1eb183e7672bf25fa77ea06d97b3d9c502a698ae (diff) | |
magit-current-blame-chunk: Don't try to operate in Dired buffers
magit-current-blame-chunk passes the result of
magit-file-relative-name to git-blame. For a Dired buffer, this value
is default-directory, and passing a directory to git-blame will lead
to an error. This error can show up when various commands unrelated
to magit-blame are called from a Dired buffer because
magit-current-blame-chunk is called by magit-commit-at-point and
magit-branch-or-commit-at-point.
Don't try to blame the return value of magit-file-relative-name when
in a Dired buffer, letting the "no file" case be handled according
NOERROR.
Fixes #4560.
Diffstat (limited to 'docs/BACKERS.md')
0 files changed, 0 insertions, 0 deletions
