Commit Briefs

c87842d5ae Mark Jamsek

show file mode for new added files in work tree diffs

Make work tree diffs of local changes on disk display the file mode of new added files like other versions of `got diff` currently do. ok stsp@


c7d5c43caf Mark Jamsek

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@


4b752015b5 Stefan Sperling

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


49d4a01751 Stefan Sperling

move more opentemp out of diffreg.c

ok tracey


f9d376997d Stefan Sperling

move got_opentempfd() out of lib/diff.c again

ok tracey


58e31a80da Omar Polo

build with -Wwrite-strings

Throwing this into the mix for a while, we can always get rid of it again if it becomes annoying. No objections from stsp@


b72706c3d1 Stefan Sperling

move creation of tempfiles outside of lib/diff.c

ok tracey


67b631c9e0 Stefan Sperling

implement 'got diff -c' for diffing commits with optional filtering by path

Need for filtering by path sugggested by kn@ ok naddy@



fe621944e8 Stefan Sperling

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.


0208f20830 Stefan Sperling

show a list of paths changed in a commit with 'got log -P', and in tog

requested by matthieu@


46f68b205b Stefan Sperling

show file mode differences when diffing trees


63035f9f4f Stefan Sperling

add -w (ignore whitespace) option to 'got diff'


4ce4674049 Stefan Sperling

label staged blobs with "(staged)" in got diff output




6c34b1aaf4 Stefan Sperling

whitespace formatting fixes in include/


b72f483a5d Stefan Sperling

make 'got diff' show local changes in work tree



adacb96fd8 Stefan Sperling

show commit timestamps in diff headers


15a949835c Stefan Sperling

remove struct got_object from public library API


4a8520aa6b Stefan Sperling

use a constant for max diff context size


df2871d297 Stefan Sperling

make amount of diff context configurable at API level


f6861a8122 Stefan Sperling

display file paths in diffs instead of blob SHA1s


11528a8298 Stefan Sperling

move common diff helpers from got and tog into lib/diff.c