Junio C Hamano | 215a7ad | 2005-09-07 17:26:23 -0700 | [diff] [blame] | 1 | git-count-objects(1) |
| 2 | ==================== |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | c3f0baa | 2007-01-18 15:53:37 -0800 | [diff] [blame] | 6 | git-count-objects - Count unpacked number of objects and their disk consumption |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Martin von Zweigbergk | 7791a1d | 2011-07-01 22:38:26 -0400 | [diff] [blame] | 10 | [verse] |
Antoine Pelisse | 1918225 | 2013-04-10 21:03:24 +0200 | [diff] [blame] | 11 | 'git count-objects' [-v] [-H | --human-readable] |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
A Large Angry SCM | 52a22d1 | 2005-08-26 18:18:48 -0700 | [diff] [blame] | 15 | This counts the number of unpacked object files and disk space consumed by |
| 16 | them, to help you decide when it is a good time to repack. |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 17 | |
Junio C Hamano | 468eb79 | 2006-05-01 23:05:39 -0700 | [diff] [blame] | 18 | |
| 19 | OPTIONS |
| 20 | ------- |
| 21 | -v:: |
Stephan Beyer | 459cf2e | 2008-06-08 03:36:10 +0200 | [diff] [blame] | 22 | --verbose:: |
Nguyễn Thái Ngọc Duy | 0bdaa12 | 2013-02-08 10:48:25 +0700 | [diff] [blame] | 23 | Report in more detail: |
| 24 | + |
| 25 | count: the number of loose objects |
| 26 | + |
Antoine Pelisse | 1918225 | 2013-04-10 21:03:24 +0200 | [diff] [blame] | 27 | size: disk space consumed by loose objects, in KiB (unless -H is specified) |
Nguyễn Thái Ngọc Duy | 0bdaa12 | 2013-02-08 10:48:25 +0700 | [diff] [blame] | 28 | + |
| 29 | in-pack: the number of in-pack objects |
| 30 | + |
Antoine Pelisse | 1918225 | 2013-04-10 21:03:24 +0200 | [diff] [blame] | 31 | size-pack: disk space consumed by the packs, in KiB (unless -H is specified) |
Nguyễn Thái Ngọc Duy | 0bdaa12 | 2013-02-08 10:48:25 +0700 | [diff] [blame] | 32 | + |
| 33 | prune-packable: the number of loose objects that are also present in |
| 34 | the packs. These objects could be pruned using `git prune-packed`. |
| 35 | + |
Justin Lebar | a58088a | 2014-03-31 15:11:44 -0700 | [diff] [blame] | 36 | garbage: the number of files in object database that are neither valid loose |
| 37 | objects nor valid packs |
Nguyễn Thái Ngọc Duy | 1a20dd4 | 2013-02-13 16:13:19 +0700 | [diff] [blame] | 38 | + |
Antoine Pelisse | 1918225 | 2013-04-10 21:03:24 +0200 | [diff] [blame] | 39 | size-garbage: disk space consumed by garbage files, in KiB (unless -H is |
| 40 | specified) |
Jeff King | 5fe849d | 2016-10-03 16:36:18 -0400 | [diff] [blame] | 41 | + |
| 42 | alternate: absolute path of alternate object databases; may appear |
| 43 | multiple times, one line per path. Note that if the path contains |
| 44 | non-printable characters, it may be surrounded by double-quotes and |
| 45 | contain C-style backslashed escape sequences. |
Antoine Pelisse | 1918225 | 2013-04-10 21:03:24 +0200 | [diff] [blame] | 46 | |
| 47 | -H:: |
| 48 | --human-readable:: |
| 49 | |
| 50 | Print sizes in human readable format |
Junio C Hamano | 468eb79 | 2006-05-01 23:05:39 -0700 | [diff] [blame] | 51 | |
Junio C Hamano | 7fc9d69 | 2005-08-23 01:49:47 -0700 | [diff] [blame] | 52 | GIT |
| 53 | --- |
Christian Couder | 9e1f0a8 | 2008-06-06 09:07:32 +0200 | [diff] [blame] | 54 | Part of the linkgit:git[1] suite |