-
I would like to store the current change id in a variable to script something like: jj git fetch
CURRENT_CHANGEID=...
jj new main
jj move --from $CURRENT_CHANGEID a_file
jj describe -m 'Description'
jj git push -c @ The closest I could get is Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
jbcdnr
Jul 11, 2024
Replies: 2 comments 4 replies
-
A workaround jj new
jj move --from @- a_file
jj describe -m 'Description'
jj git fetch
jj rebase -r @ -d main
jj git push -c @ and there is probably a way to do it with |
Beta Was this translation helpful? Give feedback.
1 reply
-
Use |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for pointing me to
--no-graph
. Complete solution:jj log -l 1 --template 'self.change_id()' --no-graph