Add jj up alias that fetches and runs jj new

This commit is contained in:
Sami Samhuri 2026-06-24 19:32:51 -07:00
parent 680c5f03a9
commit c4ed1888cb

View file

@ -37,6 +37,10 @@ bookmark-advance-to = "(@ ~ empty()) | (@ & empty())-"
"behind_trunk()" = "bookmarks() ~ ::trunk() ~ trunk()::"
[aliases]
# Fetch from git, then start fresh work on top of the named bookmark.
# Usage: jj up main
up = ["util", "exec", "--", "bash", "-c", 'jj git fetch && jj new "$1"', "jj-up"]
# Compact log of your open work.
wip = ["log", "-r", "open()"]