From 0cbd8d548f5f54891bfe30af88092f23a735a4ef Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Tue, 25 Feb 2025 20:59:07 +0100 Subject: [PATCH] jj: Add alias to insert change before or after current Internally `jnb` runs `jj new -B@` so that it simply always insert a change directly before the current working copy. Likewise with `jna` for inserting after current. (Which is still somewhat helpful since by default `jj new` will create a branch in the tree if the new change is not the leaf node) --- vcs/jj/config/sh/alias.d/jj.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vcs/jj/config/sh/alias.d/jj.sh b/vcs/jj/config/sh/alias.d/jj.sh index 395517a..a7f4606 100644 --- a/vcs/jj/config/sh/alias.d/jj.sh +++ b/vcs/jj/config/sh/alias.d/jj.sh @@ -10,6 +10,8 @@ if exist lazyjj; then fi alias jn="jj new" +alias jna="jj new -A@" +alias jnb="jj new -B@" alias jds="jj describe" alias jc="jj commit"