Use git-branch to list branches.

This commit is contained in:
Marius Vollmer 2008-08-06 02:29:30 +03:00
parent 9117e8ae95
commit 75879b1bfb

View file

@ -369,7 +369,7 @@
;;; 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)
(completing-read prompt (delete (mgit-get-current-branch)