From cfa59ae9df6542efa05e5c63b9c16f0301b74db8 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Mon, 10 Feb 2025 17:07:37 +0100 Subject: [PATCH] jj: Add revset aliases --- vcs/jj/config/jj/config.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vcs/jj/config/jj/config.toml b/vcs/jj/config/jj/config.toml index 8476f5c..e3d2f2b 100644 --- a/vcs/jj/config/jj/config.toml +++ b/vcs/jj/config/jj/config.toml @@ -33,3 +33,9 @@ concat( [revsets] log = "@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()" + +[revset-aliases] +"bases" = "dev" +"downstream(x,y)" = "(x::y) & y" +"branches" = "downstream(trunk(), bookmarks()) & mine()" +"curbranch" = "latest(branches::@- & branches)"