branch: elpa/git-commit
commit 451438dc900f50fd60474d5b1dd8f537157ca0b0
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>
magit-repolist-column-branch: Dim main branch
The idea is to make it easier to see in which repositories
a feature branch is checked out.
---
Documentation/RelNotes/3.4.0.org | 2 ++
lisp/magit-repos.el | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/Documentation/RelNotes/3.4.0.org b/Documentation/RelNotes/3.4.0.org
index 96365c2..472cda1 100644
--- a/Documentation/RelNotes/3.4.0.org
+++ b/Documentation/RelNotes/3.4.0.org
@@ -5,6 +5,8 @@
- Added new function ~git-commit-turn-on-orglink~ intended for use in
~git-commit-setup-hook~.
+- Some repository and submodule list columns got a bit fancier.
+
** Fixes since v3.3.0
- Automatic saving of file-visiting buffers was broken inside remote
diff --git a/lisp/magit-repos.el b/lisp/magit-repos.el
index f803ff5..24b7ed5 100644
--- a/lisp/magit-repos.el
+++ b/lisp/magit-repos.el
@@ -249,7 +249,10 @@ Usually this is just its basename."
(defun magit-repolist-column-branch (_)
"Insert the current branch."
- (magit-get-current-branch))
+ (let ((branch (magit-get-current-branch)))
+ (if (member branch magit-main-branch-names)
+ (magit--propertize-face branch 'shadow)
+ branch)))
(defun magit-repolist-column-upstream (_)
"Insert the upstream branch of the current branch."