changeset 107363:3d000dfda7b0

vc-git.el (vc-git-revision-table): Include remote branches.
author Stefan Monnier <monnier@iro.umontreal.ca>
date Wed, 10 Mar 2010 01:32:43 -0500
parents adf240ef5c11
children 78601a361261
files lisp/ChangeLog lisp/vc-git.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Mar 10 00:18:51 2010 -0500
+++ b/lisp/ChangeLog	Wed Mar 10 01:32:43 2010 -0500
@@ -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.
--- a/lisp/vc-git.el	Wed Mar 10 00:18:51 2010 -0500
+++ b/lisp/vc-git.el	Wed Mar 10 01:32:43 2010 -0500
@@ -673,7 +673,8 @@
     (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))