I have a question about switching branches using repo . I know that I can check out a branch like this:
$ repo init ... -b foo $ repo sync
I understand that this will check the foo branch of the manifest store and then check the git projects as described in the manifest.
I also understand that I can switch branches like this:
$ repo init ... -b bar $ repo sync -d
My question is: can I switch between branches without synchronizing repos and repos, and what are the consequences of this?
Let me illustrate an example:
$ repo init ... -b foo $ repo sync -d $ repo start foo-mytopic proj1 proj2 ... make some commits ... $ repo upload -t $ repo init ... -b bar $ repo sync -d $ repo start bar-topic proj1 proj3 $ repo upload -t $ cd proj1 $ git checkout foo-mytopic
I tried this before and it seems to work, but it is a bit strange, because now I checked the code that was in the manifest foo , but my current manifest branch is the bar . What are the consequences of staying on a different branch than described in the manifest?
Note. I read this one and I think my question is different. I know how to switch between branches. I am interested in the consequences of being on a different branch than those described in the current manifest, and how this might affect my workflow.
source share