jj: Make aliased log revset default in config

Instead of aliasing the revset I am always using currently, we simply
set it to be the default for any log command. If we want a different
revset we can still supply it. Other aliases keep different revsets
(e.g. `jL` variants for `all()` revsets).
This commit is contained in:
Marty Oehme 2025-02-10 17:29:05 +01:00
parent 14e3364155
commit 25c6788247
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A
2 changed files with 5 additions and 4 deletions

View file

@ -4,7 +4,7 @@ if ! exist jj; then
return 1
fi
alias j="jj log -r '@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()'"
alias j="jj"
if exist lazyjj; then
alias lj="lazyjj"
fi
@ -35,8 +35,7 @@ alias jss="jj squash"
alias jsi="jj squash --interactive"
# revset info
alias jln="jj log -T builtin_log_oneline"
alias jl="jj log -r '@ | ancestors(trunk()..(visible_heads() & mine()), 3) | trunk()' -T builtin_log_oneline"
alias jl="jj log -T builtin_log_oneline"
alias jL="jj log -r 'all()'"
alias jlo="jj log --summary"
alias jLO="jj log --summary -r 'all()'"