DonJayamanne / gitHistoryVSCode

Git History for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=donjayamanne.githistory
MIT License
963 stars 155 forks source link

[QUESTION] How to compare branches #739

Open boan-jfm opened 1 year ago

boan-jfm commented 1 year ago

In the README:

Compare:
  Compare branches
  Compare commits
  Compare files across commits

But how do I compare two branches?

Thank you.

nfgferreira commented 1 year ago

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.
jackjameshoward commented 1 year ago

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?

nfgferreira commented 1 year ago

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