feat(scm): add some jj revset aliases

This commit is contained in:
reo101 2024-09-01 04:32:00 +03:00
parent 7956cfd20a
commit df4e037373
Signed by: reo101
GPG key ID: 675AA7EF13964ACB

View file

@ -90,6 +90,17 @@ in
# pager = "nvim";
editor = "nvim";
};
revsets = {
log = "@ | bases | branches | curbranch::@ | @::nextbranch | downstream(@, branchesandheads)";
};
revset-aliases = {
"bases" = "dev";
"downstream(x,y)" = "(x::y) & y";
"branches" = "downstream(trunk(), branches()) & mine()";
"branchesandheads" = "branches | (heads(trunk()::) & mine())";
"curbranch" = "latest(branches::@- & branches)";
"nextbranch" = "roots(@:: & branchesandheads)";
};
};
};
};