Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

comparing without signature block #2578

Open
Tarjei-stavanger opened this issue Dec 16, 2024 · 2 comments
Open

comparing without signature block #2578

Tarjei-stavanger opened this issue Dec 16, 2024 · 2 comments

Comments

@Tarjei-stavanger
Copy link

I've used WinMerge to compare two instances of TSS from Microsoft. It didn't go well. the new files had all new signatures so it was impossible to compare the script files.

So it would be nice to compare various script files and ignore the signature block.

I suppose that this is most useful for PowerShell with vbscript as a remote second..

@sdottaka
Copy link
Member

Is the TSS the TroubleShootingScript below?

https://learn.microsoft.com/en-us/troubleshoot/windows-client/windows-tss/introduction-to-troubleshootingscript-toolset-tss

The signature block exists as a comment, so you can ignore it by enabling the Ignore comment differences option.

However, currently WinMerge does not consider the psm1 extension to be a powershell file, so the # line is not treated as a comment.

For this reason, add ;psm1 to the line with PowerShell in the File Type column in the Editor/Syntax category of the Options window as shown below, and check Ignore comment differences in the Compare/General category. This should cause the differences in the signature block to be ignored.

image
image

@Tarjei-stavanger
Copy link
Author

You are correct.

Thank you for your tip! It is very useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants