summaryrefslogtreecommitdiffstats
path: root/man1/git-pack-redundant.1
blob: d90ffb31fb2e347e5ffc774bd11c36db1337d8ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
'\" t
.\"     Title: git-pack-redundant
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 2024-04-19
.\"    Manual: Git Manual
.\"    Source: Git 2.45.0.rc0
.\"  Language: English
.\"
.TH "GIT\-PACK\-REDUNDANT" "1" "2024\-04\-19" "Git 2\&.45\&.0\&.rc0" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-pack-redundant \- Find redundant pack files
.SH "SYNOPSIS"
.sp
.nf
\fIgit pack\-redundant\fR [\-\-verbose] [\-\-alt\-odb] (\-\-all | <pack\-filename>\&...)
.fi
.sp
.SH "WARNING"
.sp
\fBgit pack\-redundant\fR has been deprecated and is scheduled for removal in a future version of Git\&. Because it can only remove entire duplicate packs and not individual duplicate objects, it is generally not a useful tool for reducing repository size\&. You are better off using \fBgit gc\fR to do so, which will put objects into a new pack, removing duplicates\&.
.sp
Running \fBpack\-redundant\fR without the \fB\-\-i\-still\-use\-this\fR flag will fail in this release\&. If you believe you have a use case for which \fBpack\-redundant\fR is better suited and oppose this removal, please contact the Git mailing list at \m[blue]\fBgit@vger\&.kernel\&.org\fR\m[]\&\s-2\u[1]\d\s+2\&. More information about the list is available at \m[blue]\fBhttps://git\-scm\&.com/community\fR\m[]\&.
.SH "DESCRIPTION"
.sp
This program computes which packs in your repository are redundant\&. The output is suitable for piping to \fBxargs rm\fR if you are in the root of the repository\&.
.sp
\fIgit pack\-redundant\fR 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\&.
.sp
git fsck \-\-full \-\-unreachable | cut \-d \*(Aq \*(Aq \-f3 | \e git pack\-redundant \-\-all | xargs rm
.SH "OPTIONS"
.PP
\-\-all
.RS 4
Processes all packs\&. Any filenames on the command line are ignored\&.
.RE
.PP
\-\-alt\-odb
.RS 4
Don\(cqt require objects present in packs from alternate object database (odb) directories to be present in local packs\&.
.RE
.PP
\-\-verbose
.RS 4
Outputs some statistics to stderr\&. Has a small performance penalty\&.
.RE
.SH "SEE ALSO"
.sp
\fBgit-pack-objects\fR(1) \fBgit-repack\fR(1) \fBgit-prune-packed\fR(1)
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite
.SH "NOTES"
.IP " 1." 4
git@vger.kernel.org
.RS 4
\%mailto:git@vger.kernel.org
.RE