Improved Diff and Merge

Discussion for WinMergeQT experiment (and later porting?)

Improved Diff and Merge

Postby corwinjoy » Thu Sep 01, 2011 7:17 pm

Assuming there is enough momentum behind a new version of WinMerge I'd really like to see the program be smarter about diffs. A lot of the diffs generated by the current version are not all that readable and could be made a lot better by using more modern diff algorithms. Here are two outlines of how a basic diff can be made better:
1. Better context for moves and identification of diffs. The idea is explained by Neil Frasier here ( and implemented in the Google diff and patch library.
2. Be smarter about the diff problem that is being solved, match up unique lines between the files first to form better alignment points and then fill in elements such as blank lines or braces that may be repeated. The algorithm is explained here: and is supposedly used in bazaar . This might give a lot more readable diffs for code.

I have experience writing diff algorithms ( and Qt so I could contribute to help get improved diff into the tool.
Posts: 1
Joined: Thu Sep 01, 2011 7:04 pm

Re: Improved Diff and Merge

Postby thistleknot » Fri Aug 08, 2014 6:08 pm

I'm hoping to start up on this.
Posts: 4
Joined: Fri Aug 08, 2014 5:35 pm

Return to WinMergeQT

Who is online

Users browsing this forum: No registered users and 1 guest