]>
Commit | Line | Data |
---|---|---|
9bc0f32c | 1 | git-pack-redundant(1) |
2a444781 LS |
2 | ===================== |
3 | ||
4 | NAME | |
5 | ---- | |
c3f0baac | 6 | git-pack-redundant - Find redundant pack files |
2a444781 LS |
7 | |
8 | ||
9 | SYNOPSIS | |
10 | -------- | |
b1889c36 | 11 | 'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > |
2a444781 LS |
12 | |
13 | DESCRIPTION | |
14 | ----------- | |
15 | This program computes which packs in your repository | |
16 | are redundant. The output is suitable for piping to | |
483bc4f0 | 17 | `xargs rm` if you are in the root of the repository. |
2a444781 | 18 | |
ba020ef5 | 19 | 'git-pack-redundant' accepts a list of objects on standard input. Any objects |
a6080a0a | 20 | given will be ignored when checking which packs are required. This makes the |
9a888b75 LS |
21 | following command useful when wanting to remove packs which contain unreachable |
22 | objects. | |
23 | ||
b1889c36 JN |
24 | git fsck --full --unreachable | cut -d ' ' -f3 | \ |
25 | git pack-redundant --all | xargs rm | |
9a888b75 | 26 | |
2a444781 LS |
27 | OPTIONS |
28 | ------- | |
29 | ||
2a444781 | 30 | |
1c3039e8 | 31 | --all:: |
addf88e4 | 32 | Processes all packs. Any filenames on the command line are ignored. |
1c3039e8 LS |
33 | |
34 | --alt-odb:: | |
35 | Don't require objects present in packs from alternate object | |
36 | directories to be present in local packs. | |
37 | ||
38 | --verbose:: | |
39 | Outputs some statistics to stderr. Has a small performance penalty. | |
2a444781 LS |
40 | |
41 | Author | |
42 | ------ | |
e6bd2391 | 43 | Written by Lukas Sandström <lukass@etek.chalmers.se> |
2a444781 LS |
44 | |
45 | Documentation | |
46 | -------------- | |
e6bd2391 | 47 | Documentation by Lukas Sandström <lukass@etek.chalmers.se> |
2a444781 | 48 | |
56ae8df5 | 49 | SEE ALSO |
2a444781 | 50 | -------- |
5162e697 DM |
51 | linkgit:git-pack-objects[1] |
52 | linkgit:git-repack[1] | |
53 | linkgit:git-prune-packed[1] | |
2a444781 LS |
54 | |
55 | GIT | |
56 | --- | |
9e1f0a85 | 57 | Part of the linkgit:git[1] suite |