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

[feature request] Add options to command line to change "compare methods" #530

Closed
glhez opened this issue Dec 31, 2020 · 4 comments
Closed

Comments

@glhez
Copy link

glhez commented Dec 31, 2020

Hello,

In the WinMerge 2011 fork, I had requested an option to provide a compare method on the command line : datadiode/winmerge2011@97438d7 (I put the commit for reference, but I don't think the commit can simply be cherry picked).

My use case is simple : I've got heavy file (>200M) that I don't want to fully compare, only to determine if there are missing files.

If I want to do that with WinMerge 2.16.8.0, I must select the folder I want to compare, then select the comparison method.

The same could be done for other options (whitespaces, carriage returns, ...).

@sdottaka
Copy link
Member

I think this option should be added, but even with WinMerge 2.16.8, you can specify it in a way that is not described in the manual.
The following is an example of comparing with the Modified Date and Size compare method.

"c:\Program Files\WinMerge\WinMergeU.exe" /r /cfg CompMethod2=4 path1 path2

@glhez
Copy link
Author

glhez commented Dec 31, 2020

That's fine as a workaround for me.

What's the values for CompMethod2 ?
Or perhaps the index is the same than one in the UI under Compare method? (and 5=Size).

@sdottaka
Copy link
Member

What's the values for CompMethod2 ?
Or perhaps the index is the same than one in the UI under Compare method? (and 5=Size).

CompMethod2=0: Full Contents
CompMethod2=1: Quick Contents
CompMethod2=2: Binary Contents
CompMethod2=3: Modified Date
CompMethod2=4: Modified Date and Size
CompMethod2=5: Size

sdottaka added a commit that referenced this issue Jan 2, 2021
sdottaka added a commit that referenced this issue Jan 2, 2021
@sdottaka
Copy link
Member

sdottaka commented Jan 2, 2021

Implemented by commit 99aaa68

@sdottaka sdottaka closed this as completed Jan 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants