Commits
- Commit:
7a52a8bcab46bbdee77445b05e844f903ff1fbcd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove casts which make older gcc versions unhappy
../lib/diffreg.c:44: error: initializer element is not constant
../lib/diffreg.c:51: error: initializer element is not constant
../lib/diffreg.c:59: error: initializer element is not constant
../lib/diffreg.c:66: error: initializer element is not constant
reported by Red on Libera IRC, and by sthen@ who pointed out such
failures appearing in landry's sparc64 bulk build logs.
- Commit:
e72b098390333cd6d10b39518001fba7ba6a1790
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
sync file with diff.git 279d77aa1e4b921090e702a6a8a5a94a98a062b1 and
use the faster headers-only mode for diff3
- Commit:
d671c3138b0a55e515557fd21584dd92c4b42a14
- From:
- Tom Jones <thj@freebsd.org>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch diff output mode from "edscript" to "plain" for diff3
getchange() in diff3.c takes any line that starts with an integer
and treats it as a hunk header. It doesn't actually require ed script
instructions, and traditional ed script diff output would break it.
Thus, changing Got's diff3 to rely on plain diff output mode paves the
way for implementing traditional ed-script style output in diff.git.
Patch by Tom Jones
- Commit:
5e91dae4dd43b8024731223110ab18f505f453ac
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove trailing whitespace; patch by Josiah Frentsos
- Commit:
c7d5c43cafada3470647a8b876d489018002f713
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
tog: keymaps to jump to next/prev file/hunk in the diff
Add () and {} key maps to navigate to the previous and next file or hunk in
the diff. This required changing Got's diff API to collect line type metadata
in addition to the line offsets already produced as prompted by stsp.
ok stsp@
- Commit:
4b752015b5208a96c2d1b6c1c6b8589884b8b2b6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
switch 'tog diff' and 'tog blame' to Myers diff for speed
Make the choice of diff algorithm configurable by diff API users.
The got and gotweb programs keep using Patience diffs which are
prettier than Myers. But tog should be as fast as possible since
it is being used interactively. If performance of Patience diff
gets improved later we can consider switching tog back over to it.
ok tracey jamsek
- Commit:
49d4a01751d39b078bfb27a2d63b5cfa69e410fd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move more opentemp out of diffreg.c
ok tracey
- Commit:
d7b5a0e827bb38e5c8502f0ba8d7838fedaba19b
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
inline struct got_object_id in struct got_object_qid
Saves us from doing a malloc/free call for every item on the list.
ok op@
- Commit:
56b63ca4ab1049de6fa2d6910ce22c16e2b42a53
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere
ok millert, naddy
- Commit:
1cb46f007dad47a45d2c2d32aaeee11372f95309
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
consistently label removed files as "/dev/null" in diff headers
- Commit:
64453f7e55c4c69b6cd08229929ed8227b789ff8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle binary files in got/tog diff commands; add -a options to force text
- Commit:
cca5682ee944c46413628161f13e2779718f0536
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow for configuring a custom file atomizer with got_diff_get_config()
- Commit:
24e87ea36353362f676afa722d0b7361a7223cbc
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused function got_diffreg_prepared_files()
- Commit:
72254787333eeb9d226c5341bbfee1b48c1c0f30
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simply got_diff_prepare_file() by letting callers worry about file creation
- Commit:
62ad13c507a97d98899383907ff33c526073e287
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused empty function got_diff_dump_change()
- Commit:
fe621944e83fe6367f7bff97128b4240a9cdc7c5
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
merge new diff implementation from the git.gameoftrees.org diff.git repository
This new diff implementation was started by Neels Hofmeyr during the u2k20
hackathon and now replaces diffreg.c code lifted from the OpenBSD base system.
The integration of this code into Got was done by me.
Got now uses the patience diff algorithm by default.
The diff.git repository will remain the primary repository for the diff code,
which already compiles and runs on other operating systems such as Linux.
Any fixes and improvements for files inherited from the diff.git repository
should be written against that repository and synced to got.git afterwards.
- Commit:
efbadcb1d6a9f47a1f36cfca345d24bc31f3e98d
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
avoid creating empty files when one side of a diff is empty; ok tracey
- Commit:
ac9e7fddf6c391bfdce7428c3775968b488f9e3d
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
create temporary workaround to opening /dev/null during diffing.
this will need to be reworked later. ok stsp
- Commit:
303e14b5e91b152d78219ff8bbca1f9bfbbb094e
- From:
- Steven McDonald <steven@steven-mcdonald.id.au>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
Add missing includes for time() and ctime()
These headers were implicitly used on OpenBSD, but building on Linux
revealed that <time.h> wasn't included directly. diffreg.c uses
ctime(), which additionally needs <sys/types.h>.
- Commit:
83290b45b037bedb9c814d4afaf111edb4ab7754
- From:
- Steven McDonald <steven@steven-mcdonald.id.au>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
Remove return value from diffreg's fetch()
The last use of this was removed in
0165cdf03ffac4c24334979832ad27554913d54c over a year ago.
- Commit:
8fbe07c208c126ce38d8d97079ef34df4a41cbc6
- From:
- Steven McDonald <steven@steven-mcdonald.id.au>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
Remove unused variable in diffreg's fetch()
- Commit:
14ed98fdf951d01d640d17b7ef18d4a9a3b761a7
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove unused 'oldfile' parameter from diffreg.c's fetch()
- Commit:
dc424a06a9c1f0f664cee320cc1b34752f33ec97
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
initial 'got stage -p' implementation
- Commit:
3043f6a3950d04db865f7c663fcbee68deec37e9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove accidental assignment in diffreg.c
- Commit:
8cbe58099b1488354d3efbfcb9f4877ed5b1364c
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
plug /dev/null file descriptor leaks in diffreg.c