From 5d4da9b9df0361a6fec62a62195e446fc333fd42 Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Sat, 18 Jan 2025 16:11:27 +0100 Subject: [PATCH] rules(jj): add rules (github #30) Co-authored-by: iff --- rules/jj.toml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 rules/jj.toml diff --git a/rules/jj.toml b/rules/jj.toml new file mode 100644 index 0000000..7a78676 --- /dev/null +++ b/rules/jj.toml @@ -0,0 +1,28 @@ +command = "jj" + +[[match_err]] +pattern = [ + "pass `--ignore-immutable`" +] +suggest = [ +''' +{{command}} --ignore-immutable''' +] + +[[match_err]] +pattern = [ + "use --allow-new to push new bookmark" +] +suggest = [ +''' +{{command}} --allow-new''' +] + +[[match_err]] +pattern = [ + "no bookmarks found in the default push revset" +] +suggest = [ +''' +{{command}} --change @''' +]