Commits
- Commit:
df6221c7df42758252c508006201c3f66e6ae831
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use a separate .cvg meta data directory for cvg(1) work trees
This prevents mixing the use of got and cvg clients in the same work tree.
Avoids confusion going forward while cvg differentiates itself further.
tog(1) and gotadmin(1) remain compatible with both work tree formats.
These tools only read work trees to locate the corresponding repository.
- Commit:
0317ab6c0ce48babb19e46067d8677892bee130c
- From:
- Omar Polo <op@omarpolo.com>
- Date:
take reachability in consideration when cleaning redundant packfiles
This wraps the cleaning up of loose objects and redundant pack files
under a new functions, making the _prepare() and _complete() functions
unnecessary. It walks the reachable commits unconditionally since
that information is always needed and adapt how we purge loose
objects after this change.
The progress function is changed too and we log `ncommits' first,
followed by the number of loose objects, followed by the rest.
Pack files are now considered redundant when all their objects are
provided by a bigger pack or are unreachable.
ok stsp
- Commit:
02a7e21b3f3a4da1e7a12935ca467231cc145f46
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'gotadmin load' always read data from standard input
This provides better symmetry with 'gotadmin dump', and allows us to pass
the list of references as command line arguments, replacing the -b option.
The -l option now takes an argument which specifies the bundle file rather
than requiring data to be fed on stdin with -l which feels awkward.
ok op@
- Commit:
f254a62dd329cbfad934b920af5fc03bbe65f406
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotadmin load: don't add a newline when listing refs
the newline is only needed after the progress output, which is not
present in the 'listing refs' case.
- Commit:
f7d653fcfcca0cce30313948d6e58d074502c599
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add an initial implementation of gotadmin load
it is intended to be the counterpart of `gotadmin dump' and, just
like it, there's planned support for handling fast-import stream.
At the moment it only deals with git bundles.
ok stsp
- Commit:
2df845d59f19a7c87fc48af1f9d4124e57ebf2b0
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add an initial implementation of gotadmin dump
gotadmin dump is used to export (part of) the history of the
repository; at the moment it only generates git bundles (which are
pack files with a header) but support to generate a fast-import
stream is planned.
ok/tweaks stsp and jamsek
- Commit:
900499fd0de2c868694828487244f097de63289e
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
fix cleanup progress reporting output
- Commit:
3bf0e21f50b11c683f08a06c8ab362fe220adc2b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add a lock for the cleanup operation
This adds the functions got_repo_cleanup_prepare() and _complete()
to lock/unlock the repository to prevent multiple `gotadmin cleanup'
or `git gc' operations to run in parallel.
improvements and ok stsp@
- Commit:
9a7c12cfb1e1a7e36813ba8898c5281d5a0dbc30
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotadmin cleanup: remove redundant pack files
improvements and ok stsp@
- Commit:
5822e79e39a8777984e08b5d89a8c55d6aa0356d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
include sha2.h too where sha1.h is included
In preparation for wide sha256 support; stsp@ agrees. Change done
mechanically with
find . -iname \*.[cy] -exec sam {} +
X ,x/<sha1\.h>/i/\n#include <sha2.h>
- Commit:
c7a4fcc8bebad9dc0bd1183fec3bd405dd4ebc57
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotadmin pack: add a -D flag to force using ref-delta
Intended mostly for the regress suite, so we'll be able to test also the
ref-delta code paths.
ok stsp@
- Commit:
1fa0d17d767f8e443af3b4493f3f2af0e759dda9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
got/tog/gotadmin: pledge earlier
In the case of tog move setlocale(3) before pledge(2), as suggested by
stsp.
ok stsp@
- Commit:
798586ca1057dfd1b0eb11951cef65ceec04ac97
- From:
- Omar Polo <op@omarpolo.com>
- Date:
replace got_repo_get_gitconfig_extensions with got_repo_has_extension
got_repo_get_gitconfig_extensions is only used in gotadmin to check if
the preciousObjects extension is active; let's replace it with a
function that just checks whether a certain extension is active. It
simplifies future changes to the extensions handling.
ok stsp@
- Commit:
d8bacb933720b8819f0c4e76b004775aa1885b9b
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
got: minor refactor of got_pathlist_free() API
Accept flag parameter to optionally specify which pointers to free. This saves
callers looping through the list to free pointers.
ok + fix stsp@
- Commit:
6f3190632709528909c1dc45046a2a85921584aa
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
sort getopt() option lists and switch statements; patch by Josiah Frentsos
- Commit:
6a0a1bd407b4d06a6d003428daaa50cc2d92c6f9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync usage with reality
The -h and -V/--version flags must be given before the command; with
those flags the command is actually optional, but don't over-complicate
the usage string with these nitpicks.
ok/improvements stsp@
- Commit:
6f04a73d17761092a3a7ab07632cd1a89d4bfd21
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
add gotadmin init -b <branch> to specify repo head ref
Similar to `git init -b`. Includes a change to `got import` behaviour such that
"main" is no longer hardcoded by default; instead, we import to the branch
resolved via the repository's HEAD reference unless `got import -b` is used,
and only if HEAD cannot be resolved to a branch do we fallback to "main".
includes fix plus ok from stsp@
- Commit:
5e91dae4dd43b8024731223110ab18f505f453ac
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove trailing whitespace; patch by Josiah Frentsos
- Commit:
827a167b34401bd6541b199377e4e6c68d643151
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Stefan Sperling <stsp@stsp.name>
- Date:
Group options in accordance with style(9)
patch by Josiah Frentsos
- Commit:
02a5c5d00338c9549f6a399391841bd8219d91cf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
move 'got init' command to 'gotadmin init'
This functionality is better suited for gotadmin because it is
technically a server-side repository operation when we consider
the 'got' tool as the client-side tool.
I have plans to move 'got import' into gotadmin as well.
ok op@
- Commit:
61bce19e6ae4329fe5f0a05d33b7bd1510718852
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
revert "clear the rest of the pack_fds pointers"
There is no need to clear local variables before returning from a function.
ok tracey
- Commit:
bb1c2cf3c90225c5f234ac42f3507b6e1839da5d
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
clear the rest of the pack_fds pointers
- Commit:
0ae84acc1f0a0584e4f26ccbe029c895043b3abe
- From:
- Tracey Emery <tracey@traceyemery.net>
- Date:
move got_opentempfd out of got_repo_open. ok stsp@
thanks for all the help massaging this diff
- Commit:
571608344a37fb96f46850a1124415ab68b1a431
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
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
- Commit:
45ca46332f0cc34f6414a5e6646f178121043165
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
add -q to "gotadmin pack" usage