Lukas_Sandström | 9bc0f32 | 2005-11-10 00:16:13 +0100 | [diff] [blame] | 1 | git-pack-redundant(1) |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 2 | ===================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | c3f0baa | 2007-01-18 15:53:37 -0800 | [diff] [blame] | 6 | git-pack-redundant - Find redundant pack files |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 11 | [verse] |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 12 | 'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 13 | |
| 14 | DESCRIPTION |
| 15 | ----------- |
| 16 | This program computes which packs in your repository |
| 17 | are redundant. The output is suitable for piping to |
Jonathan Nieder | 483bc4f | 2008-06-30 13:56:34 -0500 | [diff] [blame] | 18 | `xargs rm` if you are in the root of the repository. |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 19 | |
Thomas Rast | 0b444cd | 2010-01-10 00:33:00 +0100 | [diff] [blame] | 20 | 'git pack-redundant' accepts a list of objects on standard input. Any objects |
Junio C Hamano | a6080a0 | 2007-06-07 00:04:01 -0700 | [diff] [blame] | 21 | given will be ignored when checking which packs are required. This makes the |
Lukas Sandström | 9a888b7 | 2005-11-18 23:20:15 +0100 | [diff] [blame] | 22 | following command useful when wanting to remove packs which contain unreachable |
| 23 | objects. |
| 24 | |
Jonathan Nieder | b1889c3 | 2008-06-30 01:09:04 -0500 | [diff] [blame] | 25 | git fsck --full --unreachable | cut -d ' ' -f3 | \ |
| 26 | git pack-redundant --all | xargs rm |
Lukas Sandström | 9a888b7 | 2005-11-18 23:20:15 +0100 | [diff] [blame] | 27 | |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 28 | OPTIONS |
| 29 | ------- |
| 30 | |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 31 | |
Lukas_Sandström | 1c3039e | 2005-11-11 01:25:04 +0100 | [diff] [blame] | 32 | --all:: |
Pavel Roskin | addf88e | 2006-07-09 03:44:30 -0400 | [diff] [blame] | 33 | Processes all packs. Any filenames on the command line are ignored. |
Lukas_Sandström | 1c3039e | 2005-11-11 01:25:04 +0100 | [diff] [blame] | 34 | |
| 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öm | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 41 | |
Junio C Hamano | 56ae8df | 2008-05-28 16:55:27 -0700 | [diff] [blame] | 42 | SEE ALSO |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 43 | -------- |
Dan McGee | 5162e69 | 2007-12-29 00:20:38 -0600 | [diff] [blame] | 44 | linkgit:git-pack-objects[1] |
| 45 | linkgit:git-repack[1] |
| 46 | linkgit:git-prune-packed[1] |
Lukas_Sandström | 2a44478 | 2005-11-09 02:23:55 +0100 | [diff] [blame] | 47 | |
| 48 | GIT |
| 49 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 50 | Part of the linkgit:git[1] suite |