X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-pack-redundant.txt;h=8fb065943862e55c6cc0b3c7408506d06ad510f4;hb=514236aa5ab380cf7f585cb9195abdbb8080aac5;hp=55c0d48bf1d64320c7e688987c663033a8ce2179;hpb=9bc0f32c77b755b8d77d215cc47fafff53cad6f5;p=git.git diff --git a/Documentation/git-pack-redundant.txt b/Documentation/git-pack-redundant.txt index 55c0d48b..8fb06594 100644 --- a/Documentation/git-pack-redundant.txt +++ b/Documentation/git-pack-redundant.txt @@ -3,12 +3,12 @@ git-pack-redundant(1) NAME ---- -git-pack-redundant - Program used to find redundant pack files. +git-pack-redundant - Program used to find redundant pack files SYNOPSIS -------- -'git-pack-redundant [ -v ] < -a | .pack filename ... >' +'git-pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > DESCRIPTION ----------- @@ -16,26 +16,37 @@ This program computes which packs in your repository are redundant. The output is suitable for piping to 'xargs rm' if you are in the root of the repository. +git-pack-redundant accepts a list of objects on standard input. Any objects +given will be ignored when checking which packs are required. This makes the +following command useful when wanting to remove packs which contain unreachable +objects. + +git-fsck-objects --full --unreachable | cut -d ' ' -f3 | \ +git-pack-redundant --all | xargs rm + OPTIONS ------- --v:: - Verbose. Outputs some statistics to stderr. - Has a small performance penalty. --a:: - All. Processes all the local packs. Any filenames on - the commandline are ignored. +--all:: + Processes all packs. Any filenames on the commandline are ignored. + +--alt-odb:: + Don't require objects present in packs from alternate object + directories to be present in local packs. + +--verbose:: + Outputs some statistics to stderr. Has a small performance penalty. Author ------ -Written by Lukas Sandström +Written by Lukas Sandström Documentation -------------- -Documentation by Lukas Sandström +Documentation by Lukas Sandström -See-Also +See Also -------- gitlink:git-pack-objects[1] gitlink:git-repack[1]