How can I make the git popup display the current branch of the main module in a multi-repo git project?

Answered

I have a (python) project with 3 modules each of which lives in their own git repo.

The git pop up in the status bar displays the current branch of one of these modules but I cannot find any way to control which one.  In some senses one of the modules is the "main" module but I find no way to convey this to the popup - it appears to have picked one of the modules as its preferred one and even removing the module from the project and re-adding it does nothing to persuade intellij to show the current branch of any other module.

0
1 comment

Branches pop-up displays branches of the repository which hosts the file/folder in the current context. 

E.g. if you have a file opened (and its tab selected) in Editor, it will be a repository of the file. If no files are opened, Branches widget will show the repository for the file selected in the project tree.

There is no way to make the widget show only one repo. If modules are related and have the same branches, enable the Execute branch operations on all roots in Settings | Version Control | Git, and a Common branches section will appear.

You will still be able to control repositories separately, so this enabling this option could help even if repositories are independent.

0

Please sign in to leave a comment.