Search code examples
androidgitbuildandroid-sourcerepository

How to merge android repo branch off old release to new release master?


We have an android platform repo branch worked on by a vendor. Lets say it is vendor-branch. It is based off release 1.0. The vendor-branch changes were never committed to release 1.0.

Now we are working on release 3.0. But I want to start where the vendor left off in vendor-branch and merge with release 3.0 workspace.

How do I do that with android repo tool?

I have done repo init with 3.0 followed by repo sync. I am looking for a way to merge vendor-branch changes onto 3.0 version in my workspace.

What is the right repo command for this?

Is there a web page that explains different sub commands of repo?

Thanks
Videoguy


Solution

  • There is a documentation page for repo. I've never used repo myself but it appears to be an abstraction over some git commands written with python. The upload command seems promising.

    Failing that you can always use git. You should be able to perform a three way merge of your branch to master and sync that.