Use git-branch to list branches.
This commit is contained in:
parent
9117e8ae95
commit
75879b1bfb
1 changed files with 1 additions and 1 deletions
2
mgit.el
2
mgit.el
|
@ -369,7 +369,7 @@
|
||||||
;;; Branches
|
;;; Branches
|
||||||
|
|
||||||
(defun mgit-list-branches ()
|
(defun mgit-list-branches ()
|
||||||
(delete "." (delete ".." (directory-files ".git/refs/heads/"))))
|
(mgit-shell-lines "git branch - a | cut -c3-"))
|
||||||
|
|
||||||
(defun mgit-read-other-branch (prompt)
|
(defun mgit-read-other-branch (prompt)
|
||||||
(completing-read prompt (delete (mgit-get-current-branch)
|
(completing-read prompt (delete (mgit-get-current-branch)
|
||||||
|
|
Loading…
Reference in a new issue