Re: [PATCH v6 12/14] commit-graph: read only from specific pack-indexes
From: SZEDER Gábor <hidden>
Date: 2018-03-15 22:50:33
On Wed, Mar 14, 2018 at 8:27 PM, Derrick Stolee [off-list ref] wrote:
From: Derrick Stolee <redacted> 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.
This commit message, and indeed the code itself talk about pack indexes ...
quoted hunk ↗ jump to hunk
Signed-off-by: Derrick Stolee <redacted> --- Documentation/git-commit-graph.txt | 11 ++++++++++- builtin/commit-graph.c | 33 ++++++++++++++++++++++++++++++--- commit-graph.c | 26 ++++++++++++++++++++++++-- commit-graph.h | 4 +++- packfile.c | 4 ++-- packfile.h | 2 ++ t/t5318-commit-graph.sh | 10 ++++++++++ 7 files changed, 81 insertions(+), 9 deletions(-)diff --git a/Documentation/git-commit-graph.txt b/Documentation/git-commit-graph.txt index 51cb038f3d..b945510f0f 100644 --- a/Documentation/git-commit-graph.txt +++ b/Documentation/git-commit-graph.txt@@ -32,7 +32,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 packfiles.
... but this piece of documentation ...
+ OPT_BOOL(0, "stdin-packs", &opts.stdin_packs,
+ N_("scan packfiles listed by stdin for commits")),... and this help text, and even the name of the option talk about packfiles.