Skip to content
Discussion options

You must be logged in to vote

Does this work? It seems to select what you're asking for in my own repo.

jj rebase -d trunk() -b 'all:trunk().. ~ (trunk()..remote_bookmarks())::'

Building it up from scratch:

             trunk()..remote_bookmarks()          Find all commits reachable from a remote bookmark...
            (trunk()..remote_bookmarks())::       ...and all of their descendants
                                                  These are the commits we _don't_ want to rebase

trunk()..                                         Start with all commits not merged to the trunk...
trunk().. ~ (trunk()..remote_bookmarks())::       ...and exclude the ones we don't want to rebase

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Talor-A
Comment options

@jennings
Comment options

@Talor-A
Comment options

Answer selected by Talor-A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants