Commits
- Commit:
e51ebd83fa731d197ee4074ee2e94dbc0581078c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle binary files like diff(1) does; new -a option forces text
- Commit:
fe6d58fb52ea8d1041a8eb65e28a04816df67c08
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
add a missing include for uint8_t and switch from <inttypes.h> to <stdint.h>
ok millert stsp
- Commit:
c16dde50bb5e92533dcbbc513875d726f0f9dd48
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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.
- Commit:
13e2caa3edcc68a62e29b4d5503254cd5bf80b2b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for showing function prototypes in unidiff hunk headers
- Commit:
65a56b169e5746c2fe2ee46008238505c64e4908
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
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).
- Commit:
b7ba71f0ee2562b0d5877b72d4de351a8e78a119
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a diff output mode which produces simple ed(1) scripts
- Commit:
0c9a7e9d9f2c0efc643a722ca46b8144fadf531f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a zero-context test and rename the -C option to -U (matches diff(1))
- Commit:
1dfba0555efd6b616811906d011f96945be90dcc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move headers from include/diff/ to include/; makes things easier for consumers
- Commit:
2c20a3ed9d3c979c38e927387d4ea488e4dd631b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
optionally provide information about the generated diff to the API user
- Commit:
00d5652be692793aa7c9285b490702d05a7ab8df
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
convert 'ignore_whitespace' boolean into a more general flags argument
- Commit:
7a54ad3ae5d25aa5349668c8d3d3fa048a8f0733
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use buffered stdio if falling back on file i/o; this is much faster
- Commit:
18a9c7f892c7460bf71ec8b912cfbe3ac028aecd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove another custom linux shim in favour of compat/ directory
- Commit:
3ba0a2ed9248c03ceb66583587fba9b20c77747a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
enable -Wstrict-prototype and -Wunused-variable in Linux build
- Commit:
527f2c8a94ec96cdf79504060f948ec88c070289
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a -C option which sets the amount of context lines in unified diffs
- Commit:
732e8ee0325715558a17b919a7f6a16bf64d66e3
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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'
- Commit:
e10a628aa1d46df600ffc7194d35f67416eaefdd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid include statements in header files; make each .c pull in what's needed
- Commit:
3e6cba3a54789e151b37851eef9cdccc4180ae40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
replace enum diff_rc errors with plain errno values
- Commit:
c6eecea3241f36efced72dc3b7c5b023c89e1c4a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fall back on file i/o in case an input file cannot be memory-mapped
- Commit:
0d27172a828e5ff3c6457cbf0d36a88c9bd8e370
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
KNF: use max 80 columns
- Commit:
760fe30eb1f6351170157beaae12a0ca0c2698a9
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
diff cmdline tool: allow using Patience by -p arg
- Commit:
f8cbb8fea02ccfaa3581f70556d4670b88ce2b0d
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
remove code dup of diff_main() invocation for plain vs unidiff
- Commit:
8ad022d28ef2432ad9fcd3b13fca28d0d813631f
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
diff.c: move two #include to the top
- Commit:
9e6681576e294abc628335cb0d8d0b7800c7fd13
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
myers: permit ~4Mb of state
- Commit:
81b40973581de1f3c508c35229ff720b91e13143
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
switch default to unidiff
- Commit:
3b0f3d6191103b52a0619ed00752f7f5e6fa754c
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
initial commit