'Show Diff With Working Tree' for multiple repos at once

Answered

My IntelliJ IDEA project includes code from several GIT repositories.

Sometimes a feature requires code changes to 2x repositories.

In this case, the 2x repositories will get feature branches with the same name.

Does anyone know how to show a diff of "my work" compared to develop/master?

I can select 1x repo and "Show Diff With Working Tree", and then the other repo and "Show Diff With Working Tree" but I really want changes from the 2x repositories to appear in the same "Show Diff With Working Tree" view.

Any help appreciated.

0
3 comments

Hello Michael Fomin

When you have submodules in your project and if they have common branch names then you can compare them to a master branch via branch popup. You should choose a branch under "Common branches" group and choose desired action.

0

Hi Ruslan Kuleshov

If I have 4x repositories in my project, and all 4x are on the same feature branch, then yes, IDEA allowed me to "Show Diff With Working Tree"  under "Common branches" and I can see a diff.

However, many times, only 2x or 3x repos are on the branch, and the rest are still on master... in this case, I am unable to see a "Show Diff With Working Tree" of the 3x repos... I need to diff one repo at a time.

A workaround for this is to create a temporary branch for 'the rest' so your suggestion works.

0

This is currently not possible to control only some of several repositories in the project. Here is a somewhat similar request https://youtrack.jetbrains.com/issue/IDEA-177729, please vote.

0

Please sign in to leave a comment.