emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/git-commit b563e448c1 06/10: magit-refs-mode: Make Imenu i


From: ELPA Syncer
Subject: [nongnu] elpa/git-commit b563e448c1 06/10: magit-refs-mode: Make Imenu items less noisy
Date: Tue, 22 Feb 2022 08:58:19 -0500 (EST)

branch: elpa/git-commit
commit b563e448c125ff004e6e67446f670e691e5fd04d
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>

    magit-refs-mode: Make Imenu items less noisy
---
 lisp/magit-mode.el | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lisp/magit-mode.el b/lisp/magit-mode.el
index 70187d21ba..5b08d9d8bf 100644
--- a/lisp/magit-mode.el
+++ b/lisp/magit-mode.el
@@ -1503,6 +1503,12 @@ mentioned caches completely."
        ((and (magit-section-match [commit logbuf] section)
              (string-match "[^ ]+\\([ *|]*\\).+" heading))
         (replace-match " " t t heading 1))
+       ((magit-section-match
+         '([branch local branchbuf] [tag tags branchbuf]) section)
+        (oref section value))
+       ((magit-section-match [branch remote branchbuf] section)
+        (concat (oref (oref section parent) value) "/"
+                (oref section value)))
        ((string-match " ([0-9]+)\\'" heading)
         (substring heading 0 (match-beginning 0)))
        (t heading)))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]