dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 044b8afe9525f5fd4e0d6d5539b42d207e2c81c2
parent 4cf5f772a93f59577f533de79390bd19e855d9da
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat,  7 Mar 2026 12:17:31 +0900

jj: advance bookmark to latest non-empty ancestor by default

Diffstat:
M.config/jj/config.toml | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.config/jj/config.toml b/.config/jj/config.toml @@ -13,7 +13,7 @@ diff-formatter = ":git" revsets-use-glob-by-default = true [template-aliases] -# 1. Define the content format +# Define the content format. fmt_lol_content = ''' change_id.shortest(8) ++ " " ++ commit_id.shortest(8) ++ " " ++ @@ -30,9 +30,13 @@ separate(" ", ) ) ''' -# 2. Wrap the content in the "working_copy" label if applicable +# Wrap the content in the "working_copy" label if applicable. fmt_lol = 'if(current_working_copy, label("working_copy", fmt_lol_content), fmt_lol_content)' [colors] "committer timestamp" = "cyan" "working_copy committer timestamp" = "bright cyan" + +[revsets] +# Advance bookmarks to the most recent non-empty ancestor by default. +bookmark-advance-to = "latest(ancestors(.. ~ empty()) & ~empty())"