[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/git-commit 451438d 2/4: magit-repolist-column-branch: Dim
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/git-commit 451438d 2/4: magit-repolist-column-branch: Dim main branch |
Date: |
Mon, 18 Oct 2021 11:57:38 -0400 (EDT) |
branch: elpa/git-commit
commit 451438dc900f50fd60474d5b1dd8f537157ca0b0
Author: Jonas Bernoulli <jonas@bernoul.li>
Commit: Jonas Bernoulli <jonas@bernoul.li>
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."