Compare commits
1 commit
20741b3ca0
...
60a9cfcab0
| Author | SHA1 | Date | |
|---|---|---|---|
| 60a9cfcab0 |
2 changed files with 13 additions and 6 deletions
|
|
@ -11,7 +11,7 @@ sign-on-push = true
|
|||
private-commits = "description(glob-i:'WIP:*') | description(glob-i:'PRIVATE:*')" # refuse to push WIP commits
|
||||
|
||||
[ui]
|
||||
default-command = "log"
|
||||
default-command = ["log", "-T", "builtin_log_oneline", "-r", "stack()"]
|
||||
diff-editor = ["nvim", "-c", "DiffEditor $left $right $output"]
|
||||
|
||||
# use delta as formatter but _only_ for diff and show
|
||||
|
|
@ -73,7 +73,7 @@ if(root,
|
|||
'''
|
||||
|
||||
[revsets]
|
||||
log = "ancestors(@, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()"
|
||||
log = "recent()"
|
||||
|
||||
[revset-aliases]
|
||||
"bases" = "dev"
|
||||
|
|
@ -81,3 +81,9 @@ log = "ancestors(@, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | tru
|
|||
"branches" = "downstream(trunk(), bookmarks()) & mine()"
|
||||
"curbranch" = "latest(branches::@- & branches)"
|
||||
"githead" = "::git_head()"
|
||||
"wip()" = "description(regex:\"^WIP:\")"
|
||||
"private()" = "description(regex:\"^PRIVATE:\")"
|
||||
"blacklist()" = "wip() | private()"
|
||||
"recent()" = "ancestors(@, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()"
|
||||
"recent(x)" = "ancestors(x, 5) | ancestors(trunk()..(visible_heads() & mine()), 2) | trunk()"
|
||||
"stack()" = "ancestors(reachable(@, mutable()), 2)"
|
||||
|
|
|
|||
|
|
@ -49,11 +49,11 @@ alias jab="jj abandon"
|
|||
|
||||
# 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 -T builtin_log_oneline -r 'recent()'"
|
||||
alias JL="jj log -T builtin_log_oneline -r 'all()'"
|
||||
alias jlo="jj log --summary -T builtin_log_compact_full_description"
|
||||
alias jlo="jj log --summary -T builtin_log_compact_full_description -r 'recent()'"
|
||||
alias JLO="jj log --summary -T builtin_log_compact_full_description -r 'all()'"
|
||||
alias jloo="jj log --patch"
|
||||
alias jloo="jj log --patch -r 'recent()'"
|
||||
alias JLOO="jj log --patch -r 'all()'"
|
||||
alias jol="jj op log"
|
||||
jlf() {
|
||||
|
|
@ -65,7 +65,8 @@ jlof() {
|
|||
jloof() {
|
||||
jj log --patch -r "description(substring-i:\"$*\")"
|
||||
}
|
||||
alias jlfw='jj log -r "description(regex:\"^WIP:\")"'
|
||||
alias jlfw='jj log -r "wip()"'
|
||||
alias jlfp='jj log -r "private()"'
|
||||
|
||||
# show branches (i.e. head commits) w a couple previous commits
|
||||
alias jh="jj log -r 'ancestors(heads(all()), 3)'"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue