Commits


handle empty trees during 'import' and 'checkout'; spotted by sthen@


Add missing includes for time() and ctime() These headers were implicitly used on OpenBSD, but building on Linux revealed that <time.h> wasn't included directly. diffreg.c uses ctime(), which additionally needs <sys/types.h>.


check calloc() for NULL return value


use author name/email from ~/.gitconfig if GOT_AUTHOR is not set


obtain repo format version and commit author name/email from .git/config


prevent theoretical double-free with non-OpenBSD asprintf (found by jasper)


don't mask "not a git repo" errors in got_repo_open()


add support for reading .git/config; parser was based on isakmpd/conf.c


make 'got tag -l' list tags by time stamp in descending order


allow got_ref_list() to restrict returned refs to a particular namespace


untie cancel callback declaration from the work tree


add support for tag objects to 'got diff'


add support for tags to -c options of some got commands


ignore missing objects/pack dir in match_packed_object()


remove unused variable found in write_tree()


don't fail hard if 'objects/pack' directory does not exist in repo


fix path in got_repo_open() error message


remove another pointless call to got_path_normalize()


initial 'got import' implementation


new realpath(3) doesn't like receiving an empty path as input


fix bug where match_loose_object() skipped some objects


fix detection of ambiguous object ID match with pack files


disambiguate abbreviated object IDs based on object type


plug leaks in got_repo_match_object_id_prefix()


put error checks in right order