emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/gited 5b230bc 33/73: Use remote branches on marking com


From: Stefan Monnier
Subject: [elpa] externals/gited 5b230bc 33/73: Use remote branches on marking commands if listing remotes
Date: Sun, 29 Nov 2020 00:00:34 -0500 (EST)

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

    Use remote branches on marking commands if listing remotes
    
    * gited.el (gited--get-branches-from-command): Use remote branches when
    gited-ref-kind equals "remote".
---
 gited.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/gited.el b/gited.el
index eedf910..0e79668 100644
--- a/gited.el
+++ b/gited.el
@@ -8,11 +8,11 @@
 
 ;; Created: Wed Oct 26 01:28:54 JST 2016
 ;; Compatibility: GNU Emacs: 24.4
-;; Version: 0.2.4
+;; Version: 0.2.5
 ;; Package-Requires: ((emacs "24.4") (cl-lib "0.5"))
-;; Last-Updated: Sun Jun 25 14:36:31 JST 2017
+;; Last-Updated: Sun Jun 25 16:29:24 JST 2017
 ;;           By: calancha
-;;     Update #: 664
+;;     Update #: 665
 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;
@@ -927,6 +927,8 @@ You can then feed the file name(s) to other commands with 
\\[yank]."
 ;;; Operations on branches (copy, merge, ...).
 
 (defun gited--get-branches-from-command (cmd)
+  (when (equal gited-ref-kind "remote")
+    (setq cmd (append cmd (list "--remote"))))
   (with-temp-buffer
     (gited-git-command cmd (current-buffer) nil 'unquote)
     (goto-char (point-min))



reply via email to

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