Commit Briefs
fix a bug where 'got log PATH' failed to map PATH into the repository
The problem occured inside /usr/src/sys due to the /sys symlink, where /usr/src was a got work tree. If a work tree is present we already have the right path so checking the disk is pointless.
create temporary workaround to opening /dev/null during diffing.
this will need to be reworked later. ok stsp
Remove redundant error check after got_object_id_by_path().
An error code is always returned when the oid is NULL.
Remove unnecessary pthread_yield(3).
In the two cases a context switch isn't necessary as the thread isn't blocked and doesn't need to wait for its sibling.