1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-22 18:35:09 +00:00

vc-git.el (vc-git-revision-table): Include remote branches.

This commit is contained in:
Stefan Monnier 2010-03-10 01:32:43 -05:00
parent b41460aede
commit 53ef91b163
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-03-10 Stefan Monnier <monnier@iro.umontreal.ca>
* vc-git.el (vc-git-revision-table): Include remote branches.
2010-03-10 Kim F. Storm <storm@cua.dk>
Animated image API.

View File

@ -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))