GIT-COMMIT-GRAPH(1) | Git Manual | GIT-COMMIT-GRAPH(1) |
git-commit-graph - Write and verify Git commit-graph files
git commit-graph read [--object-dir <dir>] git commit-graph verify [--object-dir <dir>] git commit-graph write <options> [--object-dir <dir>]
Manage the serialized commit-graph file.
--object-dir
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.
read
verify
$ 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
$ git commit-graph read
Part of the git(1) suite
04/20/2020 | Git 2.20.1 |