2 .\" Title: git-commit-graph
3 .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
4 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
7 .\" Source: Git 2.35.1.225.ge2ac9141e6
10 .TH "GIT\-COMMIT\-GRAPH" "1" "02/17/2022" "Git 2\&.35\&.1\&.225\&.ge2ac91" "Git Manual"
11 .\" -----------------------------------------------------------------
12 .\" * Define some portability stuff
13 .\" -----------------------------------------------------------------
14 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 .\" http://bugs.debian.org/507673
16 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20 .\" -----------------------------------------------------------------
21 .\" * set default formatting
22 .\" -----------------------------------------------------------------
23 .\" disable hyphenation
25 .\" disable justification (adjust text to left margin only)
27 .\" -----------------------------------------------------------------
28 .\" * MAIN CONTENT STARTS HERE *
29 .\" -----------------------------------------------------------------
31 git-commit-graph \- Write and verify Git commit\-graph files
35 \fIgit commit\-graph verify\fR [\-\-object\-dir <dir>] [\-\-shallow] [\-\-[no\-]progress]
36 \fIgit commit\-graph write\fR <options> [\-\-object\-dir <dir>] [\-\-[no\-]progress]
41 Manage the serialized commit\-graph file\&.
46 Use given directory for the location of packfiles and commit\-graph file\&. This parameter exists to specify the location of an alternate that only has the objects directory, not a full
48 directory\&. The commit\-graph file is expected to be in the
50 directory and the packfiles are expected to be in
51 \fB<dir>/pack\fR\&. If the directory could not be made into an absolute path, or does not match any known object directory,
52 \fBgit commit\-graph \&.\&.\&.\fR
53 will exit with non\-zero status\&.
58 Turn progress on/off explicitly\&. If neither is specified, progress is shown if standard error is connected to a terminal\&.
64 Write a commit\-graph file based on the commits found in packfiles\&. If the config option
65 \fBcore\&.commitGraph\fR
66 is disabled, then this command will output a warning, then return success without writing a commit\-graph file\&.
69 \fB\-\-stdin\-packs\fR
70 option, generate the new commit graph by walking objects only in the specified pack\-indexes\&. (Cannot be combined with
71 \fB\-\-stdin\-commits\fR
73 \fB\-\-reachable\fR\&.)
76 \fB\-\-stdin\-commits\fR
77 option, generate the new commit graph by walking commits starting at the commits specified in stdin as a list of OIDs in hex, one OID per line\&. OIDs that resolve to non\-commits (either directly, or by peeling tags) are silently ignored\&. OIDs that are malformed, or do not exist generate an error\&. (Cannot be combined with
78 \fB\-\-stdin\-packs\fR
80 \fB\-\-reachable\fR\&.)
84 option, generate the new commit graph by walking commits starting at all refs\&. (Cannot be combined with
85 \fB\-\-stdin\-commits\fR
87 \fB\-\-stdin\-packs\fR\&.)
91 option, include all commits that are present in the existing commit\-graph file\&.
94 \fB\-\-changed\-paths\fR
95 option, compute and write information about the paths changed between a commit and its first parent\&. This operation can take a while on large repositories\&. It provides significant performance gains for getting history of a directory or a file with
96 \fBgit log \-\- <path>\fR\&. If this option is given, future commit\-graph writes will automatically assume that this option was intended\&. Use
97 \fB\-\-no\-changed\-paths\fR
98 to stop storing this data\&.
101 \fB\-\-max\-new\-filters=<n>\fR
102 option, generate at most
104 new Bloom filters (if
105 \fB\-\-changed\-paths\fR
109 \fB\-1\fR, no limit is enforced\&. Only commits present in the new layer count against this limit\&. To retroactively compute Bloom filters over earlier layers, it is advised to use
110 \fB\-\-split=replace\fR\&. Overrides the
111 \fBcommitGraph\&.maxNewFilters\fR
115 \fB\-\-split[=<strategy>]\fR
116 option, write the commit\-graph as a chain of multiple commit\-graph files stored in
117 \fB<dir>/info/commit\-graphs\fR\&. Commit\-graph layers are merged based on the strategy and other splitting options\&. The new commits not already in the commit\-graph are added in a new "tip" file\&. This file is merged with the existing file if the following merge conditions are met:
128 \fB\-\-split=no\-merge\fR
129 is specified, a merge is never performed, and the remaining options are ignored\&.
130 \fB\-\-split=replace\fR
131 overwrites the existing chain with a new one\&. A bare
133 defers to the remaining options\&. (Note that merging a chain of commit graphs replaces the existing chain with a length\-1 chain where the first and only incremental holds the entire graph)\&.
145 \fB\-\-size\-multiple=<X>\fR
146 is not specified, let
148 equal 2\&. If the new tip file would have
150 commits and the previous tip has
157 \fBM\fR, instead merge the two files into a single file\&.
169 \fB\-\-max\-commits=<M>\fR
172 a positive integer, and the new tip file would have more than
174 commits, then instead merge the new tip with the previous tip\&.
177 \fB\-\-expire\-time=<datetime>\fR
178 is not specified, let
180 be the current time\&. After writing the split commit\-graph, delete all unused commit\-graph whose modified times are older than
187 Read the commit\-graph file and verify its contents against the object database\&. Used to check for corrupted data\&.
191 option, only check the tip commit\-graph file in a chain of split commit\-graphs\&.
203 Write a commit\-graph file for the packed commits in your local
211 $ git commit\-graph write
227 Write a commit\-graph file, extending the current commit\-graph file using commits in
228 \fB<pack\-index>\fR\&.
234 $ echo <pack\-index> | git commit\-graph write \-\-stdin\-packs
250 Write a commit\-graph file containing all reachable commits\&.
256 $ git show\-ref \-s | git commit\-graph write \-\-stdin\-commits
272 Write a commit\-graph file containing all commits in the current commit\-graph file along with those reachable from
279 $ git rev\-parse HEAD | git commit\-graph write \-\-stdin\-commits \-\-append
288 Part of the \fBgit\fR(1) suite