diff options
author | Derrick Stolee <dstolee@microsoft.com> | 2019-06-11 01:35:23 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-06-11 19:34:40 +0200 |
commit | cff97116160e57741c9a954a51bfcb0057b3e89d (patch) | |
tree | 991cfb42fdd2eb373675c40f29108ee06b6fc61e /Documentation/git-multi-pack-index.txt | |
parent | Docs: rearrange subcommands for multi-pack-index (diff) | |
download | git-cff97116160e57741c9a954a51bfcb0057b3e89d.tar.xz git-cff97116160e57741c9a954a51bfcb0057b3e89d.zip |
multi-pack-index: prepare for 'expire' subcommand
The multi-pack-index tracks objects in a collection of pack-files.
Only one copy of each object is indexed, using the modified time
of the pack-files to determine tie-breakers. It is possible to
have a pack-file with no referenced objects because all objects
have a duplicate in a newer pack-file.
Introduce a new 'expire' subcommand to the multi-pack-index builtin.
This subcommand will delete these unused pack-files and rewrite the
multi-pack-index to no longer refer to those files. More details
about the specifics will follow as the method is implemented.
Add a test that verifies the 'expire' subcommand is correctly wired,
but will still be valid when the verb is implemented. Specifically,
create a set of packs that should all have referenced objects and
should not be removed during an 'expire' operation. The packs are
created carefully to ensure they have a specific order when sorted
by size. This will be important in a later test.
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-multi-pack-index.txt')
-rw-r--r-- | Documentation/git-multi-pack-index.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Documentation/git-multi-pack-index.txt b/Documentation/git-multi-pack-index.txt index 1af406aca2..6186c4c936 100644 --- a/Documentation/git-multi-pack-index.txt +++ b/Documentation/git-multi-pack-index.txt @@ -31,6 +31,11 @@ write:: verify:: Verify the contents of the MIDX file. +expire:: + Delete the pack-files that are tracked by the MIDX file, but + have no objects referenced by the MIDX. Rewrite the MIDX file + afterward to remove all references to these pack-files. + EXAMPLES -------- |