branch: elpa/git-commit
commit b563e448c125ff004e6e67446f670e691e5fd04d
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
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)))))