blob: f2869da57282658e8f689905a686ba2f74bc9020 [file] [log] [blame]
Lukas_Sandström9bc0f322005-11-10 00:16:13 +01001git-pack-redundant(1)
Lukas_Sandström2a444782005-11-09 02:23:55 +01002=====================
3
4NAME
5----
Junio C Hamanoc3f0baa2007-01-18 15:53:37 -08006git-pack-redundant - Find redundant pack files
Lukas_Sandström2a444782005-11-09 02:23:55 +01007
8
9SYNOPSIS
10--------
Martin von Zweigbergk7791a1d2011-07-01 22:38:26 -040011[verse]
Jonathan Niederb1889c32008-06-30 01:09:04 -050012'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... >
Lukas_Sandström2a444782005-11-09 02:23:55 +010013
14DESCRIPTION
15-----------
16This program computes which packs in your repository
17are redundant. The output is suitable for piping to
Jonathan Nieder483bc4f2008-06-30 13:56:34 -050018`xargs rm` if you are in the root of the repository.
Lukas_Sandström2a444782005-11-09 02:23:55 +010019
Thomas Rast0b444cd2010-01-10 00:33:00 +010020'git pack-redundant' accepts a list of objects on standard input. Any objects
Junio C Hamanoa6080a02007-06-07 00:04:01 -070021given will be ignored when checking which packs are required. This makes the
Lukas Sandström9a888b72005-11-18 23:20:15 +010022following command useful when wanting to remove packs which contain unreachable
23objects.
24
Jonathan Niederb1889c32008-06-30 01:09:04 -050025git fsck --full --unreachable | cut -d ' ' -f3 | \
26git pack-redundant --all | xargs rm
Lukas Sandström9a888b72005-11-18 23:20:15 +010027
Lukas_Sandström2a444782005-11-09 02:23:55 +010028OPTIONS
29-------
30
Lukas_Sandström2a444782005-11-09 02:23:55 +010031
Lukas_Sandström1c3039e2005-11-11 01:25:04 +010032--all::
Pavel Roskinaddf88e2006-07-09 03:44:30 -040033 Processes all packs. Any filenames on the command line are ignored.
Lukas_Sandström1c3039e2005-11-11 01:25:04 +010034
35--alt-odb::
36 Don't require objects present in packs from alternate object
37 directories to be present in local packs.
38
39--verbose::
40 Outputs some statistics to stderr. Has a small performance penalty.
Lukas_Sandström2a444782005-11-09 02:23:55 +010041
Junio C Hamano56ae8df2008-05-28 16:55:27 -070042SEE ALSO
Lukas_Sandström2a444782005-11-09 02:23:55 +010043--------
Dan McGee5162e692007-12-29 00:20:38 -060044linkgit:git-pack-objects[1]
45linkgit:git-repack[1]
46linkgit:git-prune-packed[1]
Lukas_Sandström2a444782005-11-09 02:23:55 +010047
48GIT
49---
Christian Couder9e1f0a82008-06-06 09:07:32 +020050Part of the linkgit:git[1] suite