Commits


make close(2) failure checks consistent; check 'close() == -1' everywhere ok millert, naddy


add a 'reference' directive to remote repositories in got.conf(5) Make use of this in 'got clone' to persist -R option arguments given on the command line in the cloned repository's got.conf(5) file.


add a 'fetch-all-branches' configuration setting to got.conf(5) Set fetch-all-branches in the got.conf(5) file created by 'got clone -a' in order to make a future 'got fetch' act like 'got fetch -a' by default.


use size_t for loop indices to avoid signedness warnings; from emaste@freebsd


detect unknown repository format extensions (such as sha256 format) ok millert


indentation fixes


add "branch" keyword to got.conf which specifies a list of branches to fetch ok tracey


send gitconfig imsg string values the same way as gotconfig ones are sent


follow-up to be96c417: Do not assume a \0 when receiving GOTCONFIG_STR_VAL.


Stop including <sys/syslimits.h> directly. POSIX says the limits defined there are available from <limits.h>, which almost all affected source files already included anyway. ok millert stsp


zap trailing tabs


add got.conf(5) configuration file ok tracey


do not rely on <zlib.h> to pull in <unistd.h> ok stsp


exit the loop in got_privsep_recv_tree() upon error found while looking over tracey's scan-build results


plug a memory leak in got_privsep_recv_tree() in error case found while looking over tracey's scan-build results


represent packfile hash as byte array in the privsep layer, not as object ID


rename an argument of got_privsep_send_index_pack_req() for clarity


move functions from privsep.c to the helpers which use them where possible


add support for fetching arbitrary references to 'got clone' and 'got fetch'


remove GOT_FETCH_DEBUG and toggle fetch debug output with -v option instead


add support for listing remote branches and tags to 'got clone' and 'got fetch'


add support for fetching specific branches to 'got clone' and 'got fetch'


fix allocation size in got_privsep_recv_gitconfig_remotes(); found by free(3)


transmit the 'mirror' flag correctly in got_privsep_send_gitconfig_remotes()


fetch only HEAD branch and tags by default; add -a option to fetch everything