[RFC/MERGE] Avoid syncing on incorrect lines during diff
bialix at ukr.net
Tue Dec 19 07:56:06 GMT 2006
-----BEGIN PGP SIGNED MESSAGE-----
John Arbash Meinel пишет:
> The attached patch changes the PatienceSequenceMatcher algorithm
> slightly, so that it checks for unique lines ignoring whitespace. It
> still matches exact texts, but if two lines only differ by whitespace,
> it does not consider them synchronization points.
> In my (admittedly small) amount of testing, this again improves the
> human-readable quality of the generated diffs.
Yesterday my co-worker ask me what option of diff command could produce
output that ignore whitespace changes. I say -- there is no such option.
Today John write a patch. Amazing.
I wonder if special flag of diff command should be used to force
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
More information about the bazaar