Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-pack-redundant(1) |
| 2 | ===================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-pack-redundant - Find redundant pack files |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 11 | 'git pack-redundant' [ --verbose ] [ --alt-odb ] < --all | .pack filename ... > |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 15 | This program computes which packs in your repository |
| 16 | are redundant. The output is suitable for piping to |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 17 | `xargs rm` if you are in the root of the repository. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 18 | |
Junio C Hamano | ba4b928 | 2008-07-06 05:20:31 | [diff] [blame] | 19 | 'git-pack-redundant' accepts a list of objects on standard input. Any objects |
Junio C Hamano | a77a513 | 2007-06-08 16:13:44 | [diff] [blame] | 20 | given will be ignored when checking which packs are required. This makes the |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 21 | following command useful when wanting to remove packs which contain unreachable |
| 22 | objects. |
| 23 | |
Junio C Hamano | fce7c7e | 2008-07-02 03:06:38 | [diff] [blame] | 24 | git fsck --full --unreachable | cut -d ' ' -f3 | \ |
| 25 | git pack-redundant --all | xargs rm |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 26 | |
| 27 | OPTIONS |
| 28 | ------- |
| 29 | |
| 30 | |
| 31 | --all:: |
Junio C Hamano | 51c2ab0 | 2006-07-09 20:38:54 | [diff] [blame] | 32 | Processes all packs. Any filenames on the command line are ignored. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 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. |
| 40 | |
| 41 | Author |
| 42 | ------ |
| 43 | Written by Lukas Sandström <lukass@etek.chalmers.se> |
| 44 | |
| 45 | Documentation |
| 46 | -------------- |
| 47 | Documentation by Lukas Sandström <lukass@etek.chalmers.se> |
| 48 | |
Junio C Hamano | 9049d91 | 2008-05-29 02:09:50 | [diff] [blame] | 49 | SEE ALSO |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 50 | -------- |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 51 | linkgit:git-pack-objects[1] |
| 52 | linkgit:git-repack[1] |
| 53 | linkgit:git-prune-packed[1] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 54 | |
| 55 | GIT |
| 56 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 57 | Part of the linkgit:git[1] suite |