[RFC/MERGE] Avoid syncing on incorrect lines during diff

Alexander Belchenko bialix at ukr.net
Tue Dec 19 07:56:06 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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
this behaviour?

Alexander
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFh5sWzYr338mxwCURAmBSAKCCUMp2tQorS3rdZ6YiWRdpNJg+awCfURSv
Usimmlxmu9/RUjpynvyVO50=
=IEvr
-----END PGP SIGNATURE-----





More information about the bazaar mailing list