emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/vc-got 660cf35: fix list-branches regexp


From: ELPA Syncer
Subject: [elpa] externals/vc-got 660cf35: fix list-branches regexp
Date: Sat, 25 Sep 2021 15:57:28 -0400 (EDT)

branch: externals/vc-got
commit 660cf35dc5e0307c8196608a1e7fbdf2178ba32a
Author: Omar Polo <op@omarpolo.com>
Commit: Omar Polo <op@omarpolo.com>

    fix list-branches regexp
---
 vc-got.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/vc-got.el b/vc-got.el
index c2500bf..d3a624a 100755
--- a/vc-got.el
+++ b/vc-got.el
@@ -322,7 +322,8 @@ ROOT is the root of the repo."
       (when (zerop (vc-got--call "branch" "-l"))
         (let (alist)
           (goto-char (point-min))
-          (while (re-search-forward "^\\* \\(.+\\): \\([[:word:]]+\\)$" nil t)
+          (while (re-search-forward "^\\*?[[:space:]]+\\(.+\\): 
\\([[:word:]]+\\)$"
+                                    nil t)
             (push (cons (match-string 1) (match-string 2)) alist))
           alist)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]