From c4ed1888cb485fe93e4b2d72a1e81dc21130185e Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 24 Jun 2026 19:32:51 -0700 Subject: [PATCH] Add jj up alias that fetches and runs jj new --- jj/config.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jj/config.toml b/jj/config.toml index fb17e9b..e4088f0 100644 --- a/jj/config.toml +++ b/jj/config.toml @@ -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()"]