Commits
- 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:
b756ffd26fea20daeeb98e205cc5655350cad80f
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
C++ function prototype support based on OpenBSD's diff(1) code
- Commit:
e6435d8f03f5310b07425d7d0acee7f0b8f52d8c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
search for prototypes above, not at, the first line touched by the diff chunk
- Commit:
13e2caa3edcc68a62e29b4d5503254cd5bf80b2b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for showing function prototypes in unidiff hunk headers
- Commit:
5ed6e4d2a7519005ddb8c8b7f47a02f6085df3fe
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
don't hex-escape non-printable ASCII in diff_output_lines(); UTF-8 must pass
- Commit:
1b3c539b2dd85be56e0b40125774b3d621db6351
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
atoms are stored in an array, not a list; use direct indexing instead of loop
- Commit:
7021523c6d7788c452572f0b48f0dcba23199dac
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
print "\ No newline at end of file" message like UNIX diff(1) does
Not adding new tests since this behaviour is covered by tests in Got.
- Commit:
ad5b3f855591bc548f15e09ae4b7fdf674f16245
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
rename diff_atom->d to diff_atom->root, because it always is
The idea was that for each diff box within the files, the atoms would have a
backpointer to the current layer of diff_data (indicating the current section),
but it is not actually needed to update the backpointer in each atom to the
current diff_data. That is why the current code always points atom->d to the
root diff_data for the entire file. Clarify by proper name.
Constructs like atom->d->root->foo are redundant, just use atom->root->foo.
- Commit:
fde86f3da94e40ac11b0cd229348d7ae91456270
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add missing curly braces (clang reported misleading indentation)
- Commit:
1dfba0555efd6b616811906d011f96945be90dcc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move headers from include/diff/ to include/; makes things easier for consumers
- Commit:
dabc100859385b31dcfbe62d04187d6947a12795
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check results of ARRAYLIST_ADD
- Commit:
8cba9b5e693b0da4da8e2f83b51ab6ad42430851
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
check return value of diff_output_lines
- Commit:
2c20a3ed9d3c979c38e927387d4ea488e4dd631b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
optionally provide information about the generated diff to the API user
- Commit:
24b5052ac04dc722cd86b4cd6f4a7142542edb74
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add APIs to write out the left and right versions of diff chunks
- Commit:
85ab45596727cfd0254c6d5b6f0c5705b7b6e89e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move some definitions from the public diff_main.h to an internal header file
- Commit:
6f26cb2ecbe03d692e63a4f263febfb5a74e4377
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
convert abort() in diff_output_lines() to error return
- Commit:
7a54ad3ae5d25aa5349668c8d3d3fa048a8f0733
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use buffered stdio if falling back on file i/o; this is much faster
- Commit:
e10a628aa1d46df600ffc7194d35f67416eaefdd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid include statements in header files; make each .c pull in what's needed
- 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:
61a7b57805472a03ad39d7bf4ef6d705eb0ccac2
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
KNF: function declaration return types on separate line
- Commit:
a5cbcf9c3cc6d3acdf73a4c8a1075b1ebd417fb8
- From:
- Martin Pieuchot <mpi@openbsd.org>
- Via:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
Only print (unified) header in unified format.
- Commit:
9dabce8a40d592a5f30843b4cacede063f7e7f56
- From:
- Martin Pieuchot <mpi@openbsd.org>
- Via:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
Remove unused `arbitrary_info'.
- Commit:
fbd55577b9a5f11638570a18b52d4006bec3581b
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
dont escape tabs in text output
- Commit:
3b0f3d6191103b52a0619ed00752f7f5e6fa754c
- From:
- Neels Hofmeyr <neels@hofmeyr.de>
- Date:
initial commit