Skip to content
Discussion options

You must be logged in to vote

Partly. With PATCHES, your local changes live as patch files next to the CPMAddPackage call, and they get applied again on top of whatever version you pin. So taking a vendor update is just bumping GIT_TAG or VERSION, and if upstream changed the same lines, the patch fails to apply and you fix it up, much like resolving a conflict. What you don't get is a real three-way merge or a history of how your changes evolved, only the current patch files.

If you want the full vendor branch workflow, the usual approach is to keep a fork with a branch holding your local commits, rebase or merge it onto new upstream releases, and point CPM at that fork with GIT_REPOSITORY and GIT_TAG set to your bran…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@CaptainAni187
Comment options

@CaptainAni187
Comment options

Answer selected by axd1967
@axd1967
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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