aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/git-commit-graph.txt
diff options
context:
space:
mode:
authorDerrick Stolee <dstolee@microsoft.com>2018-04-10 08:56:06 -0400
committerJunio C Hamano <gitster@pobox.com>2018-04-11 10:43:02 +0900
commit049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244 (patch)
treed0bfac6465a31845070c4c55d6916dd6997e94c8 /Documentation/git-commit-graph.txt
parent177722b344256b84f1c97b7363d3f19c04928039 (diff)
downloadgit-049d51a2bb9a03d2f2c2cce1ae41e57dbbf42244.tar.gz
commit-graph: read only from specific pack-indexes
Teach git-commit-graph to inspect the objects only in a certain list of pack-indexes within the given pack directory. This allows updating the commit graph iteratively. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-commit-graph.txt')
-rw-r--r--Documentation/git-commit-graph.txt11
1 files changed, 10 insertions, 1 deletions
diff --git a/Documentation/git-commit-graph.txt b/Documentation/git-commit-graph.txt
index 8aad8303f5..8143cc3f07 100644
--- a/Documentation/git-commit-graph.txt
+++ b/Documentation/git-commit-graph.txt
@@ -34,7 +34,9 @@ COMMANDS
'write'::
Write a commit graph file based on the commits found in packfiles.
-Includes all commits from the existing commit graph file.
++
+With the `--stdin-packs` option, generate the new commit graph by
+walking objects only in the specified pack-indexes.
'read'::
@@ -51,6 +53,13 @@ EXAMPLES
$ git commit-graph write
------------------------------------------------
+* Write a graph file, extending the current graph file using commits
+* in <pack-index>.
++
+------------------------------------------------
+$ echo <pack-index> | git commit-graph write --stdin-packs
+------------------------------------------------
+
* Read basic information from the commit-graph file.
+
------------------------------------------------