]> git.ipfire.org Git - thirdparty/git.git/blame - Documentation/git-count-objects.txt
t4039: abstract away SHA-1-specific constants
[thirdparty/git.git] / Documentation / git-count-objects.txt
CommitLineData
215a7ad1
JH
1git-count-objects(1)
2====================
7fc9d69f
JH
3
4NAME
5----
c3f0baac 6git-count-objects - Count unpacked number of objects and their disk consumption
7fc9d69f
JH
7
8SYNOPSIS
9--------
7791a1d9 10[verse]
1918225d 11'git count-objects' [-v] [-H | --human-readable]
7fc9d69f
JH
12
13DESCRIPTION
14-----------
52a22d1e
LAS
15This counts the number of unpacked object files and disk space consumed by
16them, to help you decide when it is a good time to repack.
7fc9d69f 17
468eb79e
JH
18
19OPTIONS
20-------
21-v::
459cf2e9 22--verbose::
0bdaa121
NTND
23 Report in more detail:
24+
25count: the number of loose objects
26+
1918225d 27size: disk space consumed by loose objects, in KiB (unless -H is specified)
0bdaa121
NTND
28+
29in-pack: the number of in-pack objects
30+
1918225d 31size-pack: disk space consumed by the packs, in KiB (unless -H is specified)
0bdaa121
NTND
32+
33prune-packable: the number of loose objects that are also present in
34the packs. These objects could be pruned using `git prune-packed`.
35+
a58088ab
JL
36garbage: the number of files in object database that are neither valid loose
37objects nor valid packs
1a20dd49 38+
1918225d
AP
39size-garbage: disk space consumed by garbage files, in KiB (unless -H is
40specified)
5fe849d6
JK
41+
42alternate: absolute path of alternate object databases; may appear
43multiple times, one line per path. Note that if the path contains
44non-printable characters, it may be surrounded by double-quotes and
45contain C-style backslashed escape sequences.
1918225d
AP
46
47-H::
48--human-readable::
49
50Print sizes in human readable format
468eb79e 51
7fc9d69f
JH
52GIT
53---
9e1f0a85 54Part of the linkgit:git[1] suite