Commits


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@


fix typo in comment: navicate -> navigate


pass an already open commit object to the blame callback 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@


fix free() on uninitialized variable upon error in gw_output_file_blame() ok op@


rm unused vars


const-ify tables ok thomas_adam millert


style


unbreak gotweb index when pack files are missing


add "e" (close-on-exec) flag to fopen(3) calls suggested by millert ok thomas_adam


implement 'got diff -c' for diffing commits with optional filtering by path Need for filtering by path sugggested by kn@ ok naddy@


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


indentation fixes


use gmtime_r(3) instead of localtime_r(3) to display time in UTC as intended Problem noticed by naddy due to failing regress tests at midnight, and then analyzed with additional help from millert. ok naddy


goto the right label, so we can get previous on the last page of briefs


we will never have a previous link on the summary page


fix missed commit found check


fix a glaring logic error in navigation for commits, briefs, and tags. now, we get the proper commit id from the tailq.


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


make it possible to profile gotweb; tracey had the same diff


unveil gmon.out if gotweb is being profiled ok tracey


check for close(2) error in got_repo_close() and propagate errors up ok tracey


properly render an error page instead off returning 500. bug reported by Miniontoby via irc


Fix strftime(3) short buffer checks strftime(3) returns 0 if the buffer was too short to write the complete string (including NUL) and will never return more than maxsize-1. ok stsp


make fclose(3) failure checks consistent; check 'fclose() == EOF' everywhere ok millert, naddy