You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to start a new independent change, I can run something like jj new -A main -B merge --no-edit, to get something like:
m --- n
/ \
a -- [main] -- c -- [merge] -- @
\ /
-- w --
However, I like to leave a wip bookmark on the change I'm working on (so I can remember what I was doing after lunch, so that my shell prompt that shows me wip's description works properly, ...), and currently I have to manually jj b s wip -r w to do that. (actually just jj wip w, but I still have to read through the output of jj new to find the newly-created change ID, which is not always obvious.)
Describe the solution you'd like
I'd like to be able to run something like jj new -b wip to create/move the bookmark wip to the newly-created change in a single command.
Describe alternatives you've considered
I wanted to create an alias for this (jj newip or something), but I don't think it's easily possible, because you can't pass a template to jj new – I'd have to do some error-prone parsing (or inspect the op log, I guess?) to find the new change ID. Being able to jj new -T 'new_change_id()' or something like that would also probably solve this.
Is your feature request related to a problem? Please describe.
In a megamerge workflow, I usually find myself in situations like this (diagram copied shamelessly from https://v5.chriskrycho.com/journal/jujutsu-megamerges-and-jj-absorb/):
If I want to start a new independent change, I can run something like
jj new -A main -B merge --no-edit
, to get something like:However, I like to leave a
wip
bookmark on the change I'm working on (so I can remember what I was doing after lunch, so that my shell prompt that shows mewip
's description works properly, ...), and currently I have to manuallyjj b s wip -r w
to do that. (actually justjj wip w
, but I still have to read through the output ofjj new
to find the newly-created change ID, which is not always obvious.)Describe the solution you'd like
I'd like to be able to run something like
jj new -b wip
to create/move the bookmarkwip
to the newly-created change in a single command.Describe alternatives you've considered
I wanted to create an alias for this (
jj newip
or something), but I don't think it's easily possible, because you can't pass a template tojj new
– I'd have to do some error-prone parsing (or inspect the op log, I guess?) to find the new change ID. Being able tojj new -T 'new_change_id()'
or something like that would also probably solve this.Additional context
If you're curious what I have in my prompt:
It comes out looking like:
The text was updated successfully, but these errors were encountered: