From: Stefan Monnier Date: Wed, 10 Mar 2010 06:32:43 +0000 (-0500) Subject: vc-git.el (vc-git-revision-table): Include remote branches. X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~438^2~768 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=53ef91b163296083913d5c82ac202d75affcb5d1;p=emacs.git vc-git.el (vc-git-revision-table): Include remote branches. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1d5062660cf..d5ce272d128 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2010-03-10 Stefan Monnier + + * vc-git.el (vc-git-revision-table): Include remote branches. + 2010-03-10 Kim F. Storm Animated image API. diff --git a/lisp/vc-git.el b/lisp/vc-git.el index 8799e15305f..eab3b650fa4 100644 --- a/lisp/vc-git.el +++ b/lisp/vc-git.el @@ -673,7 +673,8 @@ or BRANCH^ (where \"^\" can be repeated)." (with-temp-buffer (vc-git-command t nil nil "for-each-ref" "--format=%(refname)") (goto-char (point-min)) - (while (re-search-forward "^refs/\\(heads\\|tags\\)/\\(.*\\)$" nil t) + (while (re-search-forward "^refs/\\(heads\\|tags\\|remotes\\)/\\(.*\\)$" + nil t) (push (match-string 2) table))) table))