807cd7c044ba8de6193fa44bc99344895798835d
[git.git] / man1 / git-pack-redundant.1
1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
2 .de Sh \" Subsection
3 .br
4 .if t .Sp
5 .ne 5
6 .PP
7 \fB\\$1\fR
8 .PP
9 ..
10 .de Sp \" Vertical space (when we can't use .PP)
11 .if t .sp .5v
12 .if n .sp
13 ..
14 .de Ip \" List item
15 .br
16 .ie \\n(.$>=3 .ne \\$3
17 .el .ne 3
18 .IP "\\$1" \\$2
19 ..
20 .TH "GIT-PACK-REDUNDANT" 1 "" "" ""
21 .SH NAME
22 git-pack-redundant \- Program used to find redundant pack files.
23 .SH "SYNOPSIS"
24
25
26 \fIgit\-pack\-redundant [ \-\-verbose ] [ \-\-alt\-odb ] < \-\-all | \&.pack filename ... >\fR
27
28 .SH "DESCRIPTION"
29
30
31 This program computes which packs in your repository are redundant\&. The output is suitable for piping to \fIxargs rm\fR if you are in the root of the repository\&.
32
33
34 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\&.
35
36
37 git\-fsck\-objects \-\-full \-\-unreachable | cut \-d \fI \fR \-f3 | git\-pack\-redundant \-\-all | xargs rm
38
39 .SH "OPTIONS"
40
41 .TP
42 \-\-all
43 Processes all packs\&. Any filenames on the commandline are ignored\&.
44
45 .TP
46 \-\-alt\-odb
47 Don't require objects present in packs from alternate object directories to be present in local packs\&.
48
49 .TP
50 \-\-verbose
51 Outputs some statistics to stderr\&. Has a small performance penalty\&.
52
53 .SH "AUTHOR"
54
55
56 Written by Lukas Sandström <lukass@etek\&.chalmers\&.se>
57
58 .SH "DOCUMENTATION"
59
60
61 Documentation by Lukas Sandström <lukass@etek\&.chalmers\&.se>
62
63 .SH "SEE ALSO"
64
65
66 \fBgit\-pack\-objects\fR(1) \fBgit\-repack\fR(1) \fBgit\-prune\-packed\fR(1)
67
68 .SH "GIT"
69
70
71 Part of the \fBgit\fR(7) suite
72