[Top][All Lists]

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

[elpa] externals/gited 7ed4084 24/73: * gited.el (gited-list-branches):

From: Stefan Monnier
Subject: [elpa] externals/gited 7ed4084 24/73: * gited.el (gited-list-branches): Update docstring. Make alias to `gited-list'.
Date: Sun, 29 Nov 2020 00:00:32 -0500 (EST)

branch: externals/gited
commit 7ed4084d39b8302fcfa3026680075d1c54d2fcaa
Author: Tino Calancha <tino.calancha@gmail.com>
Commit: Tino Calancha <tino.calancha@gmail.com>

    * gited.el (gited-list-branches): Update docstring.  Make alias to 
 gited.el | 16 +++++++++++++---
 1 file changed, 13 insertions(+), 3 deletions(-)

diff --git a/gited.el b/gited.el
index 621aad0..cd56fd6 100644
--- a/gited.el
+++ b/gited.el
@@ -10,9 +10,9 @@
 ;; Compatibility: GNU Emacs: 24.4
 ;; Version: 0.2.0
 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
-;; Last-Updated: Fri Jun 09 21:14:48 JST 2017
+;; Last-Updated: Fri Jun 09 22:11:39 JST 2017
 ;;           By: calancha
-;;     Update #: 657
+;;     Update #: 658
@@ -3289,7 +3289,15 @@ in the active region."
 (defun gited-list-branches (&optional pattern other-window update)
-  "List all branches with the time of its last commit."
+  "List all branches or tags for the current repository.
+Optional arg PATTERN if non-nil, then must be \"local\", \"remote\",
+ or \"tags\".  That lists local branches, remote branches and tags,
+ respectively.  When PATTERN is nil, then list the local branches.
+Optional arg OTHER-WINDOW means to display the Gited buffer in another window.
+Optional arg UPDATE if non-nil, then force to update the gited buffer.
+ Otherwise, just switch to the Gited buffer if already exists.
+When called interactively prompt for PATTERN.
+When called interactively with a prefix set OTHER-WINDOW non-nil."
      (unless (gited-dir-under-Git-control-p)
@@ -3348,6 +3356,8 @@ in the active region."
         (or gited-verbose (gited-hide-details-mode 1))
         (setq gited--hide-details-set t)))))
+(defalias 'gited-list 'gited-list-branches)
 (defun gited-print-entry (id cols)
   "Insert a Gited entry at point.
 ID is a Lisp object identifying the entry to print, and COLS is a vector

reply via email to

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