From df4e0373735c7dcc76a686a31694bbe84d2cffdf Mon Sep 17 00:00:00 2001 From: reo101 Date: Sun, 1 Sep 2024 04:32:00 +0300 Subject: [PATCH] feat(scm): add some `jj` `revset` aliases --- modules/home-manager/reo101-scm/default.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/home-manager/reo101-scm/default.nix b/modules/home-manager/reo101-scm/default.nix index 8e3f8ca..f45a202 100644 --- a/modules/home-manager/reo101-scm/default.nix +++ b/modules/home-manager/reo101-scm/default.nix @@ -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)"; + }; }; }; };