As shown in the screen cap below, the gutter to the left of the editor shows line numbers and color indicators for which lines have changed (and what kind of change):
It shows the changes against the current HEAD
.
How could I make it show changes against another branch, such as main or even a remote branch such as origin/main?
For example, if the same change was already made on origin/mainline, I want no color indicator to show at all.
Thank you!!!!!
It adds a Git Scope
tool window that looks much like the built-in Git tool window (or the Commit tool window if you have the Git non-modal interface enabled). In the Git Scope
window you can select a different branch to be the basis of file change indicators:
Not only that:
Git Scope
window shows all changed files against the chosen branch (much like the built-in git window shows all changed files against HEAD
).Show Diff
button to iterate over all file changes.Git Scope
window has a toggle button to conveniently switch back and forth between normal mode (diffs against HEAD
) and the Git Scope
mode.