]> git.lizzy.rs Git - micro.git/commitdiff
syntax/git-rebase-todo.yaml: support more commands (#2495)
authorWaldir Pimenta <waldyrious@gmail.com>
Sun, 17 Jul 2022 19:16:35 +0000 (20:16 +0100)
committerGitHub <noreply@github.com>
Sun, 17 Jul 2022 19:16:35 +0000 (12:16 -0700)
For reference, see the list of supported commands in the help text of git's interactive rebase:
https://github.com/git/git/blob/v2.37.1/rebase-interactive.c#L43-L59

runtime/syntax/git-rebase-todo.yaml

index e2dd588a3d92cf727f182e1787e40bc5f4633f75..0d31d13a3378c2cdec5c7b6265e0c404a6d19fd3 100644 (file)
@@ -5,7 +5,7 @@ detect:
 
 rules:
     # Rebase commands
-    - statement: "^(p(ick)?|r(eword)?|e(dit)?|s(quash)?|f(ixup)?|x|exec|d(rop)?)\\b"
+    - statement: "^(p(ick)?|r(eword)?|e(dit)?|s(quash)?|f(ixup)?|x|exec|b(reak)?|d(rop)?|l(abel)?|t|reset|m(erge)?)\\b"
     # Commit IDs
     - identifier: "\\b([0-9a-f]{7,40})\\b"