jj: Improve default log invocation

The default log invoked when hitting `j` is now composed of the working copy history as well as all
ancestors, recent commits to visible heads and the trunk.

`jl` shows the same view, only as oneline commits.
This commit is contained in:
Marty Oehme 2025-02-10 14:45:04 +01:00
parent 9f4b3b14e7
commit 2eccfe88ec
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -4,7 +4,7 @@ if ! exist jj; then
return 1
fi
alias j='jj' # necessary for a thing as easy to type?
alias j="jj log -r '@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()'"
if exist lazyjj; then
alias lj="lazyjj"
fi
@ -16,7 +16,7 @@ alias jds="jj describe"
alias jc="jj commit"
alias jln="jj log -T builtin_log_oneline"
alias jl="jj log -r '@ | ancestors(remote_bookmarks().., 2) | trunk()'"
alias jl="jj log -r '@ | ancestors(trunk()..(visible_heads() & mine()), 3) | trunk()' -T builtin_log_oneline"
alias jL="jj log -r 'all()'"
alias jlo="jj log --summary"
alias jLO="jj log --summary -r 'all()'"