Commits
- Commit:
f73bf5bd9e54af999a744c731dfb492e1c9b2b6d
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
replace "(cd path && git cmd)" with "git -C path cmd"
This matches the existing use of "got -r path cmd" and
"git_commit path args".
- Commit:
ad6dd0bb6c5ebeafaa57204a04330df6658c3861
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotadmin cleanup: don't delete pack files that are too young
similar to what we do for loose objects, avoid deleting pack files
that were created "too soon" unless -a is given. This prevents
races when gotadmin load, got fetch or gotd are installing a new
pack file and a concurrent gotadmin clean attempts to remove it.
ok stsp
- 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:
9a7c12cfb1e1a7e36813ba8898c5281d5a0dbc30
- From:
- Omar Polo <op@omarpolo.com>
- Date:
gotadmin cleanup: remove redundant pack files
improvements and ok stsp@
- Commit:
39958d0b3edc8d5f522b8263cf8aa2cb1aa64020
- From:
- Omar Polo <op@omarpolo.com>
- Date:
cleanup.sh: use `rm -f' to avoid prompting, packfiles are now read-only
ok stsp@
- Commit:
49c543a6fe888394ca86e6399c706a9965486134
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use test(1) -eq and -ne to compare integers, and reduce quoting
This brings the rest of the regression test scripts in line with
patch.sh.
- Commit:
3379373c62efb02a719d4b6e040189f348470f0a
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use POSIX [ s1 = s2 ] syntax instead of [ s1 == s2 ]
- Commit:
ef8ec60674275af0116b26e9c02ab4f4bd7bcd72
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
prevent a race where 'gotadmin cleanup' deletes concurrently created objects
- Commit:
993f033b6f1d781a4ba7970fec46915d08e53502
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got ref -d' print reference name and value like the new -X options do
- Commit:
6843859a3bc6129aa748a72b6bb588d575db52cf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
display recovery steps in the lonely pack index error message
- Commit:
1124fe406f09a7d5d995da60e6251e3440226d40
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
handle pack index files which lack a corresponding pack file
ok millert
- Commit:
c294a758150a69ed50df4df8fb5986257cce07fd
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
GOT_TEST_PACK=1 is incompatible with cleanup tests
- Commit:
9188bd7879dac13c9b727f55056edaa8ffd81b25
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add support for the preciousObjects Git extension to 'gotadmin cleanup'
- Commit:
88ba84836c92b3f3755bf4e36d7acf782a753b71
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ls -1 is a no-op when stdout is redirected to a file; pointed out by naddy
- Commit:
854ca8a00969f4f4187b4e30c793021fbb476ee9
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use posix = instead of ==; reminded by naddy
- Commit:
b3d68e7f99c78cbcf672100fb14310e4b4f18482
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
implement 'gotadmin cleanup'