Commits


consistently label removed files as "/dev/null" in diff headers


handle binary files in got/tog diff commands; add -a options to force text


allow for configuring a custom file atomizer with got_diff_get_config()


remove unused function got_diffreg_prepared_files()


remove unused function got_diff_blob_prepared_file()


simply got_diff_prepare_file() by letting callers worry about file creation


remove unused empty function got_diff_dump_change()


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 base commit hash and omit filenames in conflict markers


show original file content in conflict markers


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.


remove unused function got_diff_blob_file_lines_changed()


make stage -p show the number of changes in a file


initial 'got stage -p' implementation


introduce got_diff_blob_file_lines_changed()