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)
This commit is contained in:
Marty Oehme 2025-02-25 20:59:07 +01:00
parent e792fc53af
commit 0cbd8d548f
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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"