aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2025-09-09 11:33:43 +0200
committerJonas Bernoulli <jonas@bernoul.li>2025-09-09 11:33:43 +0200
commit034df82e01024a7de6566799f6d128b520db5c95 (patch)
treebd939f1d58df8edbcf18091cab1a6404ed218e29
parent8748426ac6550e79e4374a17f35fa1e7803b703d (diff)
magit-blame--run: Handle starting from index blob
-rw-r--r--lisp/magit-blame.el3
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)