Commits


portable: add back sys/queue.h Now that the handling of including sys/queue.h is better, there's no need to remove those lines from the source. Copy the location of those original sys/queue.h lines from upstream at the same line number, so as to avoid any conflicts in the future.


inline struct got_object_id in struct got_object_qid Saves us from doing a malloc/free call for every item on the list. ok op@


stop relying on commit cache for good performance of got_object_id_by_path() Instead of internally opening and closing the same commit object over and over again, require callers to pass an open commit object in. Avoids an inherent dependency on the commit object cache for reasonable performance. ok op@


make it possible to merge vendor branches with 'got merge'


portable: add FreeBSD support This adds the capability to compile got-portable on FreeBSD.


portable: initial Linux compilation This commit modifies the GoT main branch to be able to compile it under linux.


switch from SIMPLEQ to equivalent STAILQ macros The singly-linked tail queue macros were added to OpenBSD 6.9 and are more widely available on other systems. ok stsp


add support for first-parent history traversal to got-read-pack


add copyright year for files already touched in 2020


revert e7a5b9e9b763327a7e1ddd69f6bc533565d60794; it changed blame output


commit graph's close_branch() can be inlined in one place


small simplification in got_commit_graph_iter_next()


remove a misleading comment


remove redundant code from add_node_to_iter_list()


remove commit graph iter_node pointer; use the iter_list head instead


improve commit graph's error handling of non-existent paths


no need to open a commit in got_commit_graph_iter_start()


simplify got_commit_graph_iter_start(); adding an ID to open_branches suffices


remove unused 'node' parameter from advance_branch()


commit graph's idset data pointers were not actually used


remove pointless output parameters from fetch_commits_from_open_branches()


fix error in previous commit


simplify changed-path and branch-done detection in commit graph


move changed-path detection out of add_node() in commit graph


init TAILQ earlier in got_commit_graph_open(), just in case