Commit Briefs

571608344a Stefan Sperling

open temporary files needed for delta application in got_repo_open()

This prepares for callers of got_repo_open() that cannot afford to open files in /tmp, such as gotwebd. In a follow-up change, we could ask such callers to pass in the required amount of open temporary files. One consequence is that got_repo_open() now requires the "cpath" pledge promise. Add the "cpath" promise to affected callers and remove it once the repository has been opened. ok tracey


45ca46332f Christian Weisgerber

add -q to "gotadmin pack" usage


20e420c8b1 Stefan Sperling

add a -q (quiet) option to 'gotadmin pack'


b8af7c0693 Stefan Sperling

print additional progress information while packing

ok op@


3e1665345b Christian Weisgerber

const-ify command and option tables

ok stsp


b593496508 Christian Weisgerber

shrink the width of formatted output fields to their expected size

Replace FMT_SCALED_STRSIZE with (FMT_SCALED_STRSIZE - 2) as field width when formatting output for printing. FMT_SCALED_STRSIZE includes space for a nul byte and a minus sign. Output values are expected to be always positive here. ok stsp


7d69d862a0 Stefan Sperling

let gotadmin find the repository automatically if invoked in a work tree

Move a small amount of code from worktree.c to a new file worktree_open.c, which contains everything required to open and close a work tree and inspect some of its basic parameters. This can be used by gotadmin. ok tracey



f8eebdd4e6 Stefan Sperling

add missing calls to got_repo_close() in gotadmin.c


963ac08a0c Christian Weisgerber

match printf specifiers and (cast) types for portability

ok stsp



abc59930d5 Christian Weisgerber

indentation fixes


6480c871c8 Stefan Sperling

provide separate send {} and fetch {} configuration blocks in got.conf

Feature requested by naddy. ok naddy, who also suggested some tweaks that will arrive shortly


72acb3d8f4 Stefan Sperling

remove unused 'repo' argument from got_reflist_insert()



1124fe406f Stefan Sperling

handle pack index files which lack a corresponding pack file

ok millert



b3d68e7f99 Stefan Sperling

implement 'gotadmin cleanup'



05118f5ae5 Stefan Sperling

implement gotadmin pack, indexpack, and listpack commands


20662ea0d1 Stefan Sperling

introduce 'gotadmin info'