TIL Rider can show a diff of a directory between two branches

Today I learnt that you can right–click on any project or directory within the Solution panel, and under the Git menu there is the option to Compare with Branch or Tag (or a separate option to Compare with Revision). This allows you to easily find all changes between two branches within a specific folder.

Clicking this opens a new panel containing the list of changed files, and clicking on the files shows the diffs in the same UI as other diffs within Rider.

I always like to find new features and tools which I already have access to. This feature was useful for me today, and I daresay it will be useful again.
As an aside, this is the git command to get a diff of all changes within a specified directory on the current branch since it diverged from develop.
git diff develop...HEAD -- Path/To/Directory
If there’s a lot, you can append | clip to copy the output to your clipboard, or append > diff.txt to put it in a new text file.




