branch: elpa/magit commit 48b158500dcdfe51ac6ff0dfa9066a368a322069 Author: Jonas Bernoulli <jo...@bernoul.li> Commit: Jonas Bernoulli <jo...@bernoul.li>
magit-insert-revision-headers: Fix regression Fixes a regression introduced in [1: 9a5228e2a9]. I found it rather funny, and won't spoil the joke by explaining it, or maybe I am just too lazy right now to write a professional commit message. 1: 2025-02-11 9a5228e2a952cd95c3585070865d1af158fc57ad Call magit-insert-heading less often without arguments --- lisp/magit-diff.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/magit-diff.el b/lisp/magit-diff.el index 2b42a552f2..74bc4ddece 100644 --- a/lisp/magit-diff.el +++ b/lisp/magit-diff.el @@ -2883,10 +2883,10 @@ or a ref which is not a branch, then it inserts nothing." (defun magit-insert-revision-headers () "Insert headers about the commit into a revision buffer." (magit-insert-section (headers) - (magit-insert-heading + (magit-insert-heading nil (and-let* ((string (magit-rev-format "%D" magit-buffer-revision "--decorate=full"))) - (magit-format-ref-labels string) ?\s) + (concat (magit-format-ref-labels string) " ")) (propertize (magit-rev-parse (magit--rev-dereference magit-buffer-revision)) 'font-lock-face 'magit-hash))