From 28a634c0ba1e6b6d22a1641d06a0334a0f88454c Mon Sep 17 00:00:00 2001 From: Peter Grayson Date: Tue, 4 Jul 2023 17:04:58 -0400 Subject: [PATCH] fix(stgit.el): recognize new empty patch marker In the output of `stg series -e`, the '*' character is now used instead of '0' to denote empty patches. This change attempts to remain backward compatible by also still recognizing '0' as the empty patch marker. Fixes: #342 --- contrib/stgit.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/stgit.el b/contrib/stgit.el index 73ad75fb..d10214fa 100644 --- a/contrib/stgit.el +++ b/contrib/stgit.el @@ -726,7 +726,7 @@ using (make-hash-table :test 'equal)." (match-string 0)))) (while (not (eobp)) (unless (looking-at - "\\([0 ]\\)\\([>+-]\\)\\( \\)\\([^ ]+\\) *[|#] \\(.*\\)") + "\\([*0 ]\\)\\([>+-]\\)\\( \\)\\([^ ]+\\) *[|#] \\(.*\\)") (error "Syntax error in output from stg series")) (let* ((state-str (match-string 2)) (state (cond ((string= state-str ">") 'top)