Commit Briefs
sort paths in got log -Pp and tog's diff view the same way as in the diff
reported by and fix confirmed by naddy
implement 'got diff -c' for diffing commits with optional filtering by path
Need for filtering by path sugggested by kn@ ok naddy@
do not forget to add an offset for line zero in diff_blobs()
Fixes a problem in 'tog diff' where the first line of the output was cut off.
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.
show a list of paths changed in a commit with 'got log -P', and in tog
requested by matthieu@
fix and simplify blame algorithm
Always diff against latest version of file. This is much easier since there is no need to keep track of lines shifting around.