branch: master commit 4eaeaf2a2feb54215bb887b91927b470e5101ec5 Author: Tino Calancha <tino.calan...@gmail.com> Commit: Tino Calancha <tino.calan...@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". --- packages/gited/gited.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/gited/gited.el b/packages/gited/gited.el index eedf910..0e79668 100644 --- a/packages/gited/gited.el +++ b/packages/gited/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))