Commit Briefs


Christian Weisgerber

add a missing include for uint8_t and switch from <inttypes.h> to <stdint.h>

ok millert stsp


Stefan Sperling

allow diff API users to atomize files separately

This is a breaking API change (not that we care about that at this point). This can avoid redundant work spent on atomizing a file multiple times. There are use cases where one particular file must be compared to other files over and over again, such as when blaming file history. The old API gave access to both versions of the file to the atomizer just in case a future atomizer implementation needs this. This can still be achieved by passing a second file via the atomizer's private data pointer.



Neels Hofmeyr

diff: drop -p, add -P -Q -T; diffreg(): use algo enum

-p is traditionally used for "show which C function each change is in", so don't use it for choosing Patience. Instead add two options for using Patience, -P for only Patience and -Q to attempt forward-Myers first. Also add -T for a trivial diff (diff_algo_none).











Stefan Sperling

add support for ignoring whitespace (-w option)

Tests grow the ability to call diff with options. Options to use are encoded in the test file name as a single dash followed by a string of option letters. E.g. -wp for 'ignore whitespace' and 'do patience'





Neels Hofmeyr

KNF: use max 80 columns




Neels Hofmeyr

diff.c: move two #include to the top


Neels Hofmeyr

myers: permit ~4Mb of state


Neels Hofmeyr

switch default to unidiff


Neels Hofmeyr

initial commit