DonJayamanne/gitHistoryVSCode

[QUESTION] How to compare branches

boan-jfm opened this issue · 3 comments

In the README:

Compare:
  Compare branches
  Compare commits
  Compare files across commits

But how do I compare two branches?

Thank you.

I had the same question but eventually found the procedure. I would prefer to select 2 commits on the log pane and have the differences shown at the bottom pane (please take that as a suggestion), but instead you should:

  1. Click on the More option at the right hand side of one of the commits you want to compare and select "Select this commit".
  2. Click on the More option of the other commit and select the "Compare with ..." option.
  3. After that, the Explorer at the left hand side will show a "COMPARE COMMITS" folder that shows the differences between them.

I'd like to know how to compare branches to.
@nfgferreira your answer is how to compare commits. Do you know how to compare whole branches?

I would say that branches are commits, so you go to the general case.