diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2025-09-09 11:33:43 +0200 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2025-09-09 11:33:43 +0200 |
| commit | 034df82e01024a7de6566799f6d128b520db5c95 (patch) | |
| tree | bd939f1d58df8edbcf18091cab1a6404ed218e29 /lisp | |
| parent | 8748426ac6550e79e4374a17f35fa1e7803b703d (diff) | |
magit-blame--run: Handle starting from index blob
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/magit-blame.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/magit-blame.el b/lisp/magit-blame.el index 084bae1..dce85fa 100644 --- a/lisp/magit-blame.el +++ b/lisp/magit-blame.el @@ -416,7 +416,8 @@ modes is toggled, then this mode also gets toggled automatically. (magit-blame-mode 1)) (message "Blaming...") (magit-blame-run-process - (or magit-buffer-refname magit-buffer-revision) + (and$ (or magit-buffer-refname magit-buffer-revision) + (and (not (equal $ "{index}")) $)) (magit-file-relative-name nil (not magit-buffer-file-name)) (if (memq magit-blame-type '(final removal)) (cons "--reverse" args) |
