From 76e63ef6a0912389d7f795f7a9cdbdc14e2f000c Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 14 Jan 2025 15:01:23 -0600 Subject: [PATCH] add revset alias and change default log revset --- home/private_dot_config/private_jj/config.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home/private_dot_config/private_jj/config.toml b/home/private_dot_config/private_jj/config.toml index 7a5bbf2..f8d46ac 100644 --- a/home/private_dot_config/private_jj/config.toml +++ b/home/private_dot_config/private_jj/config.toml @@ -30,7 +30,7 @@ bsm = [ l = ["log", "-T", "log_oneline"] [revsets] -log = "present(@) | ancestors(immutable_heads().., 3) | present(trunk())" +log = '@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()' # default # log = "present(@) | ancestors(immutable_heads().., 2) | present(trunk())" @@ -60,3 +60,5 @@ if(root, ) ''' +[revset-aliases] +"heads()" = '@ | ancestors(trunk()..(visible_heads()), 2) | trunk()'