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:
parent
14e3364155
commit
25c6788247
2 changed files with 5 additions and 4 deletions
|
|
@ -12,7 +12,6 @@ subprocess = true
|
||||||
private-commits = "description(glob:'wip:*')" # refuse to push WIP commits
|
private-commits = "description(glob:'wip:*')" # refuse to push WIP commits
|
||||||
|
|
||||||
[ui]
|
[ui]
|
||||||
default-command = "log"
|
|
||||||
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
||||||
pager = "delta"
|
pager = "delta"
|
||||||
|
|
||||||
|
|
@ -31,3 +30,6 @@ concat(
|
||||||
diff.git(),
|
diff.git(),
|
||||||
)
|
)
|
||||||
'''
|
'''
|
||||||
|
|
||||||
|
[revsets]
|
||||||
|
log = "@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ if ! exist jj; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias j="jj log -r '@ | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()'"
|
alias j="jj"
|
||||||
if exist lazyjj; then
|
if exist lazyjj; then
|
||||||
alias lj="lazyjj"
|
alias lj="lazyjj"
|
||||||
fi
|
fi
|
||||||
|
|
@ -35,8 +35,7 @@ alias jss="jj squash"
|
||||||
alias jsi="jj squash --interactive"
|
alias jsi="jj squash --interactive"
|
||||||
|
|
||||||
# revset info
|
# revset info
|
||||||
alias jln="jj log -T builtin_log_oneline"
|
alias jl="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()'"
|
alias jL="jj log -r 'all()'"
|
||||||
alias jlo="jj log --summary"
|
alias jlo="jj log --summary"
|
||||||
alias jLO="jj log --summary -r 'all()'"
|
alias jLO="jj log --summary -r 'all()'"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue