summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-11-18 00:12:52 -0500
committerKyle Meyer <kyle@kyleam.com>2020-11-18 00:12:52 -0500
commitdbabbc179cbc6faf82d431ceb6697cce21a06310 (patch)
tree794968d8dd1f1bb197e698a4a4e2e8234d33bfd3 /lisp
parent928629a9ccd8b439d0e98d9976b75c4cf5f048f9 (diff)
downloademacs.d-dbabbc179cbc6faf82d431ceb6697cce21a06310.tar.gz
km/magit-patch-create-series: Fix cover letter regex for rerolls
Diffstat (limited to 'lisp')
-rw-r--r--lisp/km-magit.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el
index 8f2179a..0943fe8 100644
--- a/lisp/km-magit.el
+++ b/lisp/km-magit.el
@@ -894,8 +894,14 @@ appending [M/N] to each entry."
(lambda (f) (string-match-p "\\.patch\\'" f))
(magit-untracked-files))
(error "There should be patches")))
- (cover (seq-find (lambda (f) (string-match-p "\\`0+-" f))
- patches)))
+ (cover (seq-find
+ (lambda (f)
+ (string-match-p
+ (rx string-start
+ (zero-or-one "v" (one-or-more digit) "-")
+ (one-or-more "0"))
+ f))
+ patches)))
(magit-call-git "add" patches)
(magit-run-git "commit" "-mpatches")
(when cover