jj: Add alias for showing a commit with description

This commit is contained in:
Marty Oehme 2025-02-07 23:35:16 +01:00
parent 2eccfe88ec
commit 7922e5285f
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -8,13 +8,21 @@ alias j="jj log -r '@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trun
if exist lazyjj; then
alias lj="lazyjj"
fi
alias js="jj status"
alias jd="jj diff"
alias jn="jj new"
alias jds="jj describe"
alias jc="jj commit"
# finding out the current snapshot
js() {
if [ "$#" -eq 0 ]; then
jj status
else
jj show "$*"
fi
}
alias jw="jj show"
alias jd="jj diff"
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 -r 'all()'"