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:
parent
f9d0401132
commit
98dca7ec04
2 changed files with 5 additions and 2 deletions
vcs/jj/config
|
@ -12,6 +12,7 @@ subprocess = true
|
|||
private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*')" # refuse to push WIP commits
|
||||
|
||||
[ui]
|
||||
default-command = "log"
|
||||
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
||||
pager = "delta"
|
||||
|
||||
|
|
|
@ -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($*)"
|
||||
|
|
Loading…
Reference in a new issue