branch: elpa/magit
commit 3857b8bce934144c05b97116141170eb792a90a7
Author: Jonas Bernoulli <[email protected]>
Commit: Jonas Bernoulli <[email protected]>

    git-rebase-current-line: Use match group 99 for comment-start
---
 lisp/git-rebase.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/git-rebase.el b/lisp/git-rebase.el
index 486b0422408..727e3fd2e95 100644
--- a/lisp/git-rebase.el
+++ b/lisp/git-rebase.el
@@ -356,7 +356,7 @@ BATCH also ignores commented lines."
     (goto-char (line-beginning-position))
     (if-let ((re-start (if batch
                            "^"
-                         (format "^\\(?5:%s\\)? *"
+                         (format "^\\(?99:%s\\)? *"
                                  (regexp-quote comment-start))))
              (type (seq-some (pcase-lambda (`(,type . ,re))
                                (let ((case-fold-search nil))
@@ -370,7 +370,7 @@ BATCH also ignores commented lines."
          :action-options (match-string-no-properties 2)
          :target         (match-string-no-properties 3)
          :trailer        (match-string-no-properties 4)
-         :comment-p      (and (match-string 5) t))
+         :comment-p      (and (match-string 99) t))
       (and (not batch)
            ;; Use empty object rather than nil to ease handling.
            (git-rebase-action)))))

Reply via email to