fish_jj_prompt: remove change ID

This is not really helpful because it's somewhat transient; also we
can usually use the @ alias.
This commit is contained in:
Johannes Altmanninger 2025-01-12 11:14:26 +01:00
parent 9785824794
commit 0f4e195819

View file

@ -4,16 +4,18 @@ function fish_jj_prompt
if not command -sq jj
return 1
end
jj log 2>/dev/null --no-graph --ignore-working-copy --color=always --revisions @ \
--template '
concat(
" ",
set -l info "$(
jj log 2>/dev/null --no-graph --ignore-working-copy --color=always --revisions @ \
--template '
separate(" ",
format_short_change_id_with_hidden_and_divergent_info(self),
bookmarks,
tags,
if(conflict, label("conflict", "×")),
if(empty, label("empty", "(empty)"))
),
)'
)
'
)"
if test -n $info
printf ' %s' $info
end
end