branch: elpa/git-commit commit 2676dddb84232b9813b8f3e0deb269999207331e Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-revision-refresh-buffer: Use hash of commit not tag Use "git rev-parse ARG^{commit}" instead of just "... ARG", which matters for tags (but not branches). `magit-buffer-revision-hash' is supposed to be a commit hash. --- lisp/magit-diff.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el index ca82232de2..03a4da6665 100644 --- a/lisp/magit-diff.el +++ b/lisp/magit-diff.el @@ -2497,7 +2497,7 @@ Staging and applying changes is documented in info node (magit-buffer-diff-files-suspended nil))) (defun magit-revision-refresh-buffer () - (setq magit-buffer-revision-hash (magit-rev-parse magit-buffer-revision)) + (setq magit-buffer-revision-hash (magit-rev-hash magit-buffer-revision)) (magit-set-header-line-format (concat (magit-object-type magit-buffer-revision-hash) " " magit-buffer-revision