Commit Briefs

c3564dfafd Stefan Sperling

don't scan pack index offsets for large values if pack file is < 2GB

This saves an iteration over the entire h->offsets array when opening a pack index which should not contain large offsets in the first place. ok millert@



dbdddfee14 Christian Weisgerber

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


a859171129 Stefan Sperling

raw object size should not include the length of the object's header

This way, the size of a raw object is the same regardless of whether the object was found in a loose object file or in a pack file.



a486b62b84 Stefan Sperling

ignore SIGWINCH while polling in the main process

Avoids an error where tog(1) would exit with "poll: Interrupted system call" while the terminal window was being resized. ok millert



08578a35f6 Stefan Sperling

make close(2) failure checks consistent; check 'close() == -1' everywhere

ok millert, naddy


99495ddb79 Stefan Sperling

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.


0c8b29c506 Stefan Sperling

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.



20b7abb3fa Stefan Sperling

detect unknown repository format extensions (such as sha256 format)

ok millert


62d463cac1 Christian Weisgerber

indentation fixes


b8adfa5529 Stefan Sperling

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

ok tracey




23c57b285f Christian Weisgerber

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


3168e5da21 Stefan Sperling

zap trailing tabs


257add310e Stefan Sperling

add got.conf(5) configuration file

ok tracey


81a12da586 Christian Weisgerber

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

ok stsp


d6b7d054e9 Stefan Sperling

exit the loop in got_privsep_recv_tree() upon error

found while looking over tracey's scan-build results


fca1f6ad74 Stefan Sperling

plug a memory leak in got_privsep_recv_tree() in error case

found while looking over tracey's scan-build results