Commit Briefs

5e9266f9d6 Christian Weisgerber

fix a typo that triggered "munmap: Invalid argument" in got blame on FreeBSD

ok stsp



b4737997c2 Stefan Sperling

handle binary files in blame's custom file diff atomizer



89dc8b78ad Stefan Sperling

remove stdbool.h where it's not needed





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.


62d463cac1 Christian Weisgerber

indentation fixes


3168e5da21 Stefan Sperling

zap trailing tabs


2c2d5c5f4c Stefan Sperling

show paths in blame.c GOT_ERR_OBJ_TYPE error messages


5aa813935b Stefan Sperling

add copyright year for files already touched in 2020


3d5092374a Stefan Sperling

simplify got_commit_graph_open()



56e0773df7 Stefan Sperling

convert tree entries from SIMPLEQ to an array


6fb7cd117f Stefan Sperling

add cancellation support to commit graph and 'got blame'


d0275cf721 Stefan Sperling

remove unused variable in blame_commit()


4c9641fdb6 Stefan Sperling

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.


d0c4e49e83 Stefan Sperling

remove pointless offset variable in get_blamed_line()


548237bca5 Stefan Sperling

fix blame bug where lines got annotated with wrong commit


b02560eced Stefan Sperling

fix number of lines accounted for during blame



0d8ff7d595 Stefan Sperling

rename got_blame_incremental() to got_blame()


e27a7222fa Stefan Sperling

remove got_blame() API, now unused