diff --git a/vcs/jj/config/sh/alias.d/jj.sh b/vcs/jj/config/sh/alias.d/jj.sh index 8e1c841..c40349e 100644 --- a/vcs/jj/config/sh/alias.d/jj.sh +++ b/vcs/jj/config/sh/alias.d/jj.sh @@ -25,6 +25,13 @@ alias jen="jj next --edit" alias jep="jj prev --edit" alias jenn="jj next" alias jepp="jj prev" +# edit the 'newest' head descendant of current working copy +# usually means 'get me to head of current branch' +alias jed="jj edit -r 'latest(heads(descendants(@)))'" +# go to the newest head of the trunk branch +alias jet="jj edit -r 'latest(heads(descendants(trunk())))'" +# simply go to the newest commit, i.e. our last change committed +alias jel="jj edit -r 'latest(all())'" # for squash-and-go workflows # https://steveklabnik.github.io/jujutsu-tutorial/real-world-workflows/the-squash-workflow.html