Skip to content

Commit

Permalink
fix(stgit.el): recognize new empty patch marker
Browse files Browse the repository at this point in the history
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
  • Loading branch information
jpgrayson committed Jul 4, 2023
1 parent e22c907 commit 28a634c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contrib/stgit.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 28a634c

Please sign in to comment.