From 6a6dfe3a6ecbf71cb4e68c4bedee9a84d8c92bf6 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 14 Feb 2025 10:49:12 +0100 Subject: [PATCH] jj: Add showing working copy log by default By default, the log invocation now shows at least 5 ancestors of the current working copy branch. This makes it much easier to get situated to the current location for me - otherwise, if I just pushed my main branch and thus there is the main bookmark just below my commit none of the last couple changes are shown in the log. If there are fewer than 5 ancestors it will just show however many there were. --- vcs/jj/config/jj/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcs/jj/config/jj/config.toml b/vcs/jj/config/jj/config.toml index e3d2f2b..87322f1 100644 --- a/vcs/jj/config/jj/config.toml +++ b/vcs/jj/config/jj/config.toml @@ -32,7 +32,7 @@ concat( ''' [revsets] -log = "@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()" +log = "ancestors(@, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()" [revset-aliases] "bases" = "dev"