# HG changeset patch # User Steve Fink # Date 1738353630 28800 # Fri Jan 31 12:00:30 2025 -0800 # Node ID 1383f26589506540b8b4c47414f2333380f66685 # Parent eb7fa48711d64a882aac78d267acbc088e3fb210 [jj-config] topics revset, lg and lst aliases, brief template diff --git a/conf/jj-config.toml b/conf/jj-config.toml --- a/conf/jj-config.toml +++ b/conf/jj-config.toml @@ -3,8 +3,30 @@ [revset-aliases] 'withparents(x)' = 'x | parents(x)' +'topics' = 'visible_heads() ~ immutable()' + +[template-aliases] +brief = 'brief_line ++ "\n"' + +brief_line = ''' +separate(" ", + format_short_change_id_with_hidden_and_divergent_info(self), + format_short_commit_id(commit_id), + self.bookmarks(), + self.tags(), + self.working_copies(), + if(description, + description.first_line(), + label(if(empty, "empty"), description_placeholder), + ), +) +''' [aliases] +lg = ["log", "-T", "brief"] + +lst = ["log", "-T", "brief", "-r", "topics", "--no-graph"] + book = ["bookmark"] ls = ["log", "-r", "withparents(::@ ~ immutable())"]