1GIT-COMMIT-GRAPH(1) Git Manual GIT-COMMIT-GRAPH(1)
2
3
4
6 git-commit-graph - Write and verify Git commit-graph files
7
9 git commit-graph read [--object-dir <dir>]
10 git commit-graph verify [--object-dir <dir>]
11 git commit-graph write <options> [--object-dir <dir>]
12
13
15 Manage the serialized commit-graph file.
16
18 --object-dir
19 Use given directory for the location of packfiles and commit-graph
20 file. This parameter exists to specify the location of an alternate
21 that only has the objects directory, not a full .git directory. The
22 commit-graph file is expected to be at <dir>/info/commit-graph and
23 the packfiles are expected to be in <dir>/pack.
24
26 write
27 Write a commit-graph file based on the commits found in packfiles.
28
29 With the --stdin-packs option, generate the new commit graph by
30 walking objects only in the specified pack-indexes. (Cannot be
31 combined with --stdin-commits or --reachable.)
32
33 With the --stdin-commits option, generate the new commit graph by
34 walking commits starting at the commits specified in stdin as a
35 list of OIDs in hex, one OID per line. (Cannot be combined with
36 --stdin-packs or --reachable.)
37
38 With the --reachable option, generate the new commit graph by
39 walking commits starting at all refs. (Cannot be combined with
40 --stdin-commits or --stdin-packs.)
41
42 With the --append option, include all commits that are present in
43 the existing commit-graph file.
44
45 read
46 Read the commit-graph file and output basic details about it. Used
47 for debugging purposes.
48
49 verify
50 Read the commit-graph file and verify its contents against the
51 object database. Used to check for corrupted data.
52
54 · Write a commit-graph file for the packed commits in your local .git
55 directory.
56
57 $ git commit-graph write
58
59
60 · Write a commit-graph file, extending the current commit-graph file
61 using commits in <pack-index>.
62
63 $ echo <pack-index> | git commit-graph write --stdin-packs
64
65
66 · Write a commit-graph file containing all reachable commits.
67
68 $ git show-ref -s | git commit-graph write --stdin-commits
69
70
71 · Write a commit-graph file containing all commits in the current
72 commit-graph file along with those reachable from HEAD.
73
74 $ git rev-parse HEAD | git commit-graph write --stdin-commits --append
75
76
77 · Read basic information from the commit-graph file.
78
79 $ git commit-graph read
80
81
83 Part of the git(1) suite
84
85
86
87Git 2.20.1 12/15/2018 GIT-COMMIT-GRAPH(1)