Optional Comparison of Local Project Folder to Source Control Store

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

In Source control Plug-in API 1.2 the comparison between the local project folder and source control is accomplished by using the functions SccDirQueryInfo and SccDirDiff.

Within Solution Explorer, if a folder is selected instead of an individual file, the Compare versions shortcut menu invokes the new SccDirQueryInfo and SccDirDiff in the source control plug-in.

New Capability Flags

SCC_CAP_DIRECTORYDIFF

SCC_CAP_DIRECTORYCHECKOUT

New Functions

The SccDirQueryInfo function is called before SccDirDiff to determine if the working directory is source-controlled. The SccDirDiff function displays the differences between the current local directory and the corresponding source control folder. This command asks the source control plug-in to display the list of changes to the directory. A source control plug-in provides its own UI to display the differences.

Note

This function uses the same command flags as SccDiff. As a source control plug-in provider, you may choose to not support the "quick diff" operation for directories.

See also