Using the command line with ss.exe
, there is no built-in way to search comments only (to be sure, I actually went through all relevant commands and commands options).
However, you can combine history
command with PowerShell's Find-String
:
PS C:Programs FilesMicrosoft Visual SourceSafe>$env:SSDIR = "pathosrcsafe.inidir"
PS C:Programs FilesMicrosoft Visual SourceSafe>.ss history $/path/to/desired/directory/or/file | Select-String -Pattern yourid -Context 10,1
Notes:
Context 10,1
gets you the preceding 10 lines and succeeding 1 line, so that you'll see the matched file details.
For more advanced usage utilizing history
, see this related question.
I guess you can also use external tools, like VssReporter (but I have no experience with that).
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…