From 93664902c282e2c17e5f75949af7b5fd2a05a858 Mon Sep 17 00:00:00 2001 From: sloane Date: Sat, 8 Feb 2025 09:45:17 -0500 Subject: [PATCH] add jj revset aliases --- .jjconfig.toml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.jjconfig.toml b/.jjconfig.toml index 1634a33..f83ffd7 100644 --- a/.jjconfig.toml +++ b/.jjconfig.toml @@ -24,6 +24,13 @@ log = "trunk() | ancestors(reachable(@ | mine(), mutable()), 2) | @" [git] push-bookmark-prefix = "sloane/push-" +private-commits = 'wip | nocommit | dev-only' [aliases] -rebase-bookmarks = ["rebase", "-b", "all:bookmarks() & mine() ~trunk()", "-d", "main", "--skip-emptied"] +rebase-bookmarks = ["rebase", "-b", "all:current ~trunk()", "-d", "main", "--skip-emptied"] + +[revset-aliases] +wip = 'description(regex:"^\\[(wip|WIP|todo|TODO)\\]|(wip|WIP|todo|TODO):?")' +nocommit = 'description(regex:"^\\[(nocommit|NOCOMMIT)\\]|(nocommit|NOCOMMIT):?")' +dev-only = 'description(regex:"^\\[(dev-only|DEV-ONLY)\\]|(dev-only|DEV-ONLY):?")' +current = "(bookmarks() | wip | dev-only) & mine()"