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>
This commit is contained in:
Derrick Stolee
2018-04-10 08:56:06 -04:00
committed by Junio C Hamano
parent 177722b344
commit 049d51a2bb
7 changed files with 81 additions and 9 deletions

View File

@ -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.
+
------------------------------------------------