[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/gited 1250818 30/73: Use proper name for the branch col
From: |
Stefan Monnier |
Subject: |
[elpa] externals/gited 1250818 30/73: Use proper name for the branch column according with gited-ref-kind |
Date: |
Sun, 29 Nov 2020 00:00:33 -0500 (EST) |
branch: externals/gited
commit 1250818541d56f5b2395fd3c6aced9235b7eeee7
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Tino Calancha <tino.calancha@gmail.com>
Use proper name for the branch column according with gited-ref-kind
* gited.el (gited--col-branch-name): New defun.
(gited--list-format-init, gited-hide-details-update-invisibility-spec):
Use different name for the branch column according with the
value of gited-ref-kind.
---
gited.el | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/gited.el b/gited.el
index f4530c8..e98952f 100644
--- a/gited.el
+++ b/gited.el
@@ -10,9 +10,9 @@
;; Compatibility: GNU Emacs: 24.4
;; Version: 0.2.2
;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
-;; Last-Updated: Sat Jun 10 11:38:55 JST 2017
+;; Last-Updated: Sun Jun 25 11:08:01 JST 2017
;; By: calancha
-;; Update #: 661
+;; Update #: 662
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
@@ -431,6 +431,12 @@ If you change this option, then you might want to change
(const :tag "Full" "%FT%T%z"))
:group 'gited)
+(defun gited--col-branch-name ()
+ (pcase gited-ref-kind
+ ("tags" "Tags")
+ ("remote" "Remote Branches")
+ (_ "Branches")))
+
(defun gited--list-format-init (&optional col-names col-sizes)
"Initialize `gited-list-format'.
Optional arguments COL-NAMES and COL-SIZES are the column names
@@ -453,7 +459,7 @@ and sizes."
(if reverse-order
earlierp
(not earlierp)))))
- `(,(if col-names (nth 3 col-names) "Branches")
+ `(,(if col-names (nth 3 col-names) (gited--col-branch-name))
,(if col-sizes (nth 3 col-sizes) gited-branch-col-size) t)
`(,(if col-names (nth 4 col-names) "Last Commit")
,(if col-sizes (nth 4 col-sizes) gited-commit-col-size) t))))
@@ -2676,8 +2682,8 @@ reach the beginning of the buffer."
(defun gited-hide-details-update-invisibility-spec ()
(let ((col-names
(if gited-hide-details-mode
- '("M" "Branches" "" "" "Last Commit")
- '("M" "Authors" "Date" "Branches" "Last Commit")))
+ `("M" ,(gited--col-branch-name) "" "" "Last Commit")
+ `("M" "Authors" "Date" ,(gited--col-branch-name) "Last Commit")))
(col-sizes
(if gited-hide-details-mode
(list gited-mark-col-size gited-branch-col-size
- [elpa] externals/gited 910cf66 40/73: * gited.el (gited-do-sync-with-trunk): Fix typo in docstring., (continued)
- [elpa] externals/gited 910cf66 40/73: * gited.el (gited-do-sync-with-trunk): Fix typo in docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/gited dc0b527 38/73: gited-do-sync-with-trunk: New command, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 2ce2163 13/73: Prune deleted remote branches, Stefan Monnier, 2020/11/29
- [elpa] externals/gited fac8958 03/73: gited-list-branches: Move to current branch only when it's shown, Stefan Monnier, 2020/11/29
- [elpa] externals/gited aba4cf9 18/73: * gited.el (gited-goto-branch): Check first that BRANCH is shown., Stefan Monnier, 2020/11/29
- [elpa] externals/gited b0fe243 19/73: * gited.el (gited-set-branch-upstream): Output buffer must be editable., Stefan Monnier, 2020/11/29
- [elpa] externals/gited ff44a0d 23/73: * gited.el (gited-tag-add): Fix docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/gited b4e58ca 27/73: gited-list: Add autoload cookie, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 7ed4084 24/73: * gited.el (gited-list-branches): Update docstring. Make alias to `gited-list'., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 09d3586 28/73: Show example screenshots, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 1250818 30/73: Use proper name for the branch column according with gited-ref-kind,
Stefan Monnier <=
- [elpa] externals/gited ffa55f4 65/73: * .travis.yml: Add recipes to test for Emacs 25.3 and Emacs 26.2, Stefan Monnier, 2020/11/29
- [elpa] externals/gited d31e1b2 63/73: Avoid side-effects in a couple of functions, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 5b230bc 33/73: Use remote branches on marking commands if listing remotes, Stefan Monnier, 2020/11/29
- [elpa] externals/gited 6645603 37/73: * gited.el (gited-update): Preserve marks in Gited buffer., Stefan Monnier, 2020/11/29
- [elpa] externals/gited c9c6cf3 51/73: Add function to return the repository trunk branch, Stefan Monnier, 2020/11/29
- [elpa] externals/gited b09af6b 43/73: ; * gited.el: Update file header., Stefan Monnier, 2020/11/29
- [elpa] externals/gited 86f6564 69/73: gited: Add test for the last fixed bug, Stefan Monnier, 2020/11/29
- [elpa] externals/gited e328787 32/73: * gited.el (gited-hide-details-mode): Update gited-verbose when toggle the mode., Stefan Monnier, 2020/11/29
- [elpa] externals/gited b939044 45/73: * gited.el (gited-tag-add): Fix docstring., Stefan Monnier, 2020/11/29
- [elpa] externals/gited ee3d39f 71/73: Reduce complexity of gited--fill-branch-alist, Stefan Monnier, 2020/11/29