Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to compare two branches for differences/file versions in VS2010?

Does anyone know if there is a way to check if code from production hotfix branch is not newer than mainstream branch via diff tool of some sort? (hotfix1 vs thrunk)

\src     \thrunk     \releases         \hotfix1 

I'm using vs2010 with TFS, but the branches have a lot of files, and all I came up with was comparing one file at a time, by re-specifying the target path of one of them.

like image 266
Coder Avatar asked Jun 09 '11 08:06

Coder


People also ask

How can you find out the differences between the files in two different branches?

The git diff command is used to perform the diff function on Git data sources. For example, commits, branches, files, and so on. It can also be used to compare two files of different branches.

How do I compare two branches in VST?

To compare your currently checked out branch with other branches using Visual Studio, you can utilize the branch picker hosted in the status bar and the Git changes tool window to choose any local or remote branch to compare with. Right click the branch you are targeting and select Compare with Current Branch.

How do I compare two branches in TFS?

1, Under the Environment of TFS In Source Control Explorer, right-click a file and select Compare. The Compare dialog box is opened, At this point, we can choose any different two files, two folders, two versions of branches into the Source Path and the Target Path for the comparison.


1 Answers

You can do this from right within Visual Studio - if you open Team Explorer and go to Source Control, you can compare folders recursively (even ones you don't have in your workspace.) Simply navigate to one of the branches, right click and select Compare and enter the other branch as the target.

like image 157
Edward Thomson Avatar answered Sep 20 '22 15:09

Edward Thomson