git commit-graph verify [--object-dir <dir>] [--shallow] [--[no-]progress] git commit-graph write <options> [--object-dir <dir>] [--[no-]progress]
Manage the serialized commit-graph file.
--object-dir
--[no-]progress
write
With the --stdin-packs option, generate the new commit graph by walking objects only in the specified pack-indexes. (Cannot be combined with --stdin-commits or --reachable.)
With the --stdin-commits 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. (Cannot be combined with --stdin-packs or --reachable.)
With the --reachable option, generate the new commit graph by walking commits starting at all refs. (Cannot be combined with --stdin-commits or --stdin-packs.)
With the --append option, include all commits that are present in the existing commit-graph file.
With the --split option, write the commit-graph as a chain of multiple commit-graph files stored in <dir>/info/commit-graphs. 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:
Finally, if --expire-time=<datetime> is not specified, let datetime be the current time. After writing the split commit-graph, delete all unused commit-graph whose modified times are older than datetime.
verify
With the --shallow option, only check the tip commit-graph file in a chain of split commit-graphs.
$ git commit-graph write
$ echo <pack-index> | git commit-graph write --stdin-packs
$ git show-ref -s | git commit-graph write --stdin-commits
$ git rev-parse HEAD | git commit-graph write --stdin-commits --append
Part of the git(1) suite