summaryrefslogtreecommitdiff
path: root/jj.nix
diff options
context:
space:
mode:
Diffstat (limited to 'jj.nix')
-rw-r--r--jj.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/jj.nix b/jj.nix
index 744249c..60e87fc 100644
--- a/jj.nix
+++ b/jj.nix
@@ -15,6 +15,9 @@ in {
diff-formatter = ":git";
pager = ":builtin";
};
+ revesets-aliases = {
+ "immutable_heads()" = "trunk()";
+ };
aliases = {
wk = ["log" "-r" "trunk()::@ | @::"];
gp = ["git" "push" "--allow-new"];
@@ -25,6 +28,8 @@ in {
track = ["util" "exec" "--" "bash" "-c" "jj bookmark set $(jj log -r @ -T 'self.change_id()' --no-graph)"];
tug = ["bookmark" "move" "--from" "heads(::@- & bookmarks())" "--to" "@-"];
nm = ["new" "-r" "trunk()"];
+ up = ["edit" "@+"];
+ down = ["edit" "@-"];
};
templates = {
log = "builtin_log_compact";