Re: [PATCH v6 12/14] commit-graph: read only from specific pack-indexes
- From
SZEDER Gábor <szeder.dev@gmail.com>
- Date
- Mar 15, 2018, 22:50 UTC
- Message-ID
- <CAM0VKjmwJYe01XBFeZaea=bzi+a_11MBvmqQN8GRWqZe8OTW7g@mail.gmail.com>
- In-Reply-To
- <20180314192736.70602-13-dstolee@microsoft.com>
On Wed, Mar 14, 2018 at 8:27 PM, Derrick Stolee <stolee@gmail.com> wrote:
Show 5 quoted lines
> From: Derrick Stolee <dstolee@microsoft.com> > > 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 ...
Show 23 quoted lines
> Signed-off-by: Derrick Stolee <dstolee@microsoft.com> > --- > 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.