Compartilhar via


Diff (File) (Command Line)

Shows the differences between the local copy of a file and the master copy in the database. This command also shows the differences between two versions of the same file. For definitions of the command options, see Command Options in this Help system.

Note

For binary files, Visual SourceSafe can tell you if two files are different, but not how they are different. The binary record stored for a file cannot be displayed. Only ASCII text files can be compared line-by-line.

Syntax

ss Diff <files> [-B][-D][-H][-I][-I-][-N][-O][-V][-Y][-?]

Project Rights

You must have the Read project right to use this command.

Remarks

For large text files, a difference report might cease its line-by-line reporting and skip to reporting every subsequent line. If this happens, you might want to rerun the command using -DS for the -D option. See -D Option (Command Line).

Examples

Compares the Visual SourceSafe file Help.c to the local file Help.c:

ss Diff HELP.C

Compares the version 2 Visual SourceSafe file Help.c to the local copy of Help.c:

ss Diff HELP.C -V2

Compares versions 2 and 4 of the Visual SourceSafe file Help.c:

ss Diff HELP.C -V4~2

Compares file Help.c in the Visual SourceSafe database against the file Bar.c on your local computer:

SS Diff $/HELP.C C:\BAR.C

See Also

Reference

-D Option (Command Line)
Diff (Project) (Command Line)

Other Resources

Command Line Commands
Command Options