vc-git.el (vc-git-revision-table): Include remote branches.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Mar 2010 06:32:43 +0000 (01:32 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 10 Mar 2010 06:32:43 +0000 (01:32 -0500)
lisp/ChangeLog
lisp/vc-git.el

index 1d50626..d5ce272 100644 (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.
index 8799e15..eab3b65 100644 (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))