summaryrefslogtreecommitdiffstats
path: root/man1/git-count-objects.1
blob: 7311c4d903b3abe78367cddfaf1dc032b58ae1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
'\" t
.\"     Title: git-count-objects
.\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
.\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
.\"      Date: 2024-04-24
.\"    Manual: Git Manual
.\"    Source: Git 2.45.0.rc1.1.g9f32d8da7a
.\"  Language: English
.\"
.TH "GIT\-COUNT\-OBJECTS" "1" "2024\-04\-24" "Git 2\&.45\&.0\&.rc1\&.1\&.g9f" "Git Manual"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
git-count-objects \- Count unpacked number of objects and their disk consumption
.SH "SYNOPSIS"
.sp
.nf
\fIgit count\-objects\fR [\-v] [\-H | \-\-human\-readable]
.fi
.sp
.SH "DESCRIPTION"
.sp
Counts the number of unpacked object files and disk space consumed by them, to help you decide when it is a good time to repack\&.
.SH "OPTIONS"
.PP
\-v, \-\-verbose
.RS 4
Provide more detailed reports:
.sp
count: the number of loose objects
.sp
size: disk space consumed by loose objects, in KiB (unless \-H is specified)
.sp
in\-pack: the number of in\-pack objects
.sp
size\-pack: disk space consumed by the packs, in KiB (unless \-H is specified)
.sp
prune\-packable: the number of loose objects that are also present in the packs\&. These objects could be pruned using
\fBgit prune\-packed\fR\&.
.sp
garbage: the number of files in the object database that are neither valid loose objects nor valid packs
.sp
size\-garbage: disk space consumed by garbage files, in KiB (unless \-H is specified)
.sp
alternate: absolute path of alternate object databases; may appear multiple times, one line per path\&. Note that if the path contains non\-printable characters, it may be surrounded by double\-quotes and contain C\-style backslashed escape sequences\&.
.RE
.PP
\-H, \-\-human\-readable
.RS 4
Print sizes in human readable format
.RE
.SH "GIT"
.sp
Part of the \fBgit\fR(1) suite