Skip to content
Discussion options

You must be logged in to vote

Got this working:

'closest_merge' = 'closest_merge(@)'
'closest_merge(to)' = 'heads(::to & merges())'
'mm_updates'= '(closest_merge-:: ~ closest_merge:: & (bookmarks()|remote_bookmarks())) | trunk()'

then :

jj rebase -s closest_merge -o mm_updates
jj simplify-parents

allows me to bring any new updates since megamerge creation. As a bonus it will also bring rebases (and force-pushed) branches from others. As a downside it will also bring new unrelated branches pushed to remote since last update, so occasionally I'd need to rebase megamerge to a narrower set of parents manually. Another downside is that I need not to forget to advance local bookmarks after squashing work into one the pare…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
4 replies
@redbaron
Comment options

@jennings
Comment options

@redbaron
Comment options

@redbaron
Comment options

Answer selected by redbaron
Comment options

You must be logged in to vote
1 reply
@redbaron
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants