jj: Extend log aliases

The new log aliases follow one logic: small letters are default and
capital letters show 'all' changes. Thus, `j` defaults to showing the
simple log and `J` the same log but for all changes.
`jl` shows oneline logs, `JL` oneline logs for all changes.
`jlo` shows log summaries, `JLO` for all changes.
And finally `jloo` and `JLOO` show the details patches for each change.
This commit is contained in:
Marty Oehme 2025-02-22 11:00:12 +01:00
parent f9d0401132
commit 98dca7ec04
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 5 additions and 2 deletions

View file

@ -43,11 +43,13 @@ alias ju="jj undo"
alias ji="jj split"
# revset info
alias J="jj log -r 'all()'" # mirror default command being log
alias jl="jj log -T builtin_log_oneline"
alias jL="jj log -r 'all()'"
alias JL="jj log -T builtin_log_oneline -r 'all()'"
alias jlo="jj log --summary"
alias jLO="jj log --summary -r 'all()'"
alias JLO="jj log --summary -r 'all()'"
alias jloo="jj log --patch"
alias JLOO="jj log --patch -r 'all()'"
alias jol="jj op log"
jlf() {
jj log -r "description($*)"