new: jj config

This commit is contained in:
Matthew Ryan Dillon 2024-07-29 17:36:53 -04:00
parent 1c55dba40b
commit 4dd487a08e

View file

@ -0,0 +1,21 @@
[user]
name = "Matthew Ryan Dillon"
email = "matthewrdillon@gmail.com"
[git]
push-branch-prefix = "thermokarst/jj-"
[revsets]
log = "@ | bases | branches | curbranch::@ | @::nextbranch | downstream(@, branchesandheads)"
[revset-aliases]
'bases' = 'main'
'downstream(x,y)' = '(x::y) & y'
'branches' = 'downstream(trunk(), branches()) & mine()'
'branchesandheads' = 'branches | (heads(trunk()::) & mine())'
'curbranch' = 'latest(branches::@- & branches)'
'nextbranch' = 'roots(@:: & branchesandheads)'
[ui]
default-command = ["log", "--reversed"]
diff.format = "git"