Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-count-objects(1) |
| 2 | ==================== |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 7c73c66 | 2007-01-19 00:37:50 | [diff] [blame] | 6 | git-count-objects - Count unpacked number of objects and their disk consumption |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | SYNOPSIS |
| 9 | -------- |
Junio C Hamano | 15567bc | 2011-07-23 00:51:59 | [diff] [blame] | 10 | [verse] |
Junio C Hamano | 7692782 | 2013-04-19 21:26:57 | [diff] [blame] | 11 | 'git count-objects' [-v] [-H | --human-readable] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
| 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. |
| 17 | |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 18 | |
| 19 | OPTIONS |
| 20 | ------- |
| 21 | -v:: |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 22 | --verbose:: |
Junio C Hamano | 5e7f131 | 2013-03-21 22:49:01 | [diff] [blame] | 23 | Report in more detail: |
| 24 | + |
| 25 | count: the number of loose objects |
| 26 | + |
Junio C Hamano | 7692782 | 2013-04-19 21:26:57 | [diff] [blame] | 27 | size: disk space consumed by loose objects, in KiB (unless -H is specified) |
Junio C Hamano | 5e7f131 | 2013-03-21 22:49:01 | [diff] [blame] | 28 | + |
| 29 | in-pack: the number of in-pack objects |
| 30 | + |
Junio C Hamano | 7692782 | 2013-04-19 21:26:57 | [diff] [blame] | 31 | size-pack: disk space consumed by the packs, in KiB (unless -H is specified) |
Junio C Hamano | 5e7f131 | 2013-03-21 22:49:01 | [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 | + |
Junio C Hamano | d75148a | 2014-04-08 19:48:38 | [diff] [blame] | 36 | garbage: the number of files in object database that are neither valid loose |
| 37 | objects nor valid packs |
Junio C Hamano | 5e7f131 | 2013-03-21 22:49:01 | [diff] [blame] | 38 | + |
Junio C Hamano | 7692782 | 2013-04-19 21:26:57 | [diff] [blame] | 39 | size-garbage: disk space consumed by garbage files, in KiB (unless -H is |
| 40 | specified) |
Junio C Hamano | c0859f7 | 2016-10-17 22:22:57 | [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. |
Junio C Hamano | 7692782 | 2013-04-19 21:26:57 | [diff] [blame] | 46 | |
| 47 | -H:: |
| 48 | --human-readable:: |
| 49 | |
| 50 | Print sizes in human readable format |
Junio C Hamano | 88a3a07 | 2006-05-04 08:01:43 | [diff] [blame] | 51 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 52 | GIT |
| 53 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 54 | Part of the linkgit:git[1] suite |