summaryrefslogtreecommitdiff
path: root/sha1dc
diff options
context:
space:
mode:
authorTaylor Blau <me@ttaylorr.com>2021-09-29 01:55:04 (GMT)
committerJunio C Hamano <gitster@pobox.com>2021-09-29 04:20:55 (GMT)
commit6fb22ca463077a07f42675be52e68891f319b5c2 (patch)
tree94ae60bd5cf107855df15f9fa3e743bb0af8e450 /sha1dc
parent56d863e9799c9d440eba3e61346662745a58ab21 (diff)
downloadgit-6fb22ca463077a07f42675be52e68891f319b5c2.zip
git-6fb22ca463077a07f42675be52e68891f319b5c2.tar.gz
git-6fb22ca463077a07f42675be52e68891f319b5c2.tar.bz2
builtin/multi-pack-index.c: support `--stdin-packs` mode
To power a new `--write-midx` mode, `git repack` will want to write a multi-pack index containing a certain set of packs in the repository. This new option will be used by `git repack` to write a MIDX which contains only the packs which will survive after the repack (that is, it will exclude any packs which are about to be deleted). This patch effectively exposes the function implemented in the previous commit via the `git multi-pack-index` builtin. An alternative approach would have been to call that function from the `git repack` builtin directly, but this introduces awkward problems around closing and reopening the object store, so the MIDX will be written out-of-process. Signed-off-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'sha1dc')
0 files changed, 0 insertions, 0 deletions