Re: [PATCH 01/11] multi-pack-index: add 'verify' verb
- From
Derrick Stolee <stolee@gmail.com>
- Date
- Sep 5, 2018, 19:37 UTC
- Message-ID
- <81279be3-6d9a-ae39-a5e9-399fd4be2a23@gmail.com>
- In-Reply-To
- <CAPig+cR4vEcMBe4REd4Z=WMG-MR4PUnyNNBxoJacUXzB8ho6fg@mail.gmail.com>
On 9/5/2018 2:59 PM, Eric Sunshine wrote:
Show 17 quoted lines
> On Wed, Sep 5, 2018 at 10:46 AM Derrick Stolee via GitGitGadget
> <gitgitgadget@gmail.com> wrote:
>> The multi-pack-index builtin writes multi-pack-index files, and
>> uses a 'write' verb to do so. Add a 'verify' verb that checks this
>> file matches the contents of the pack-indexes it replaces.
>> [...]
>> Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
>> ---
>> diff --git a/builtin/multi-pack-index.c b/builtin/multi-pack-index.c
>> @@ -5,7 +5,7 @@
>> static char const * const builtin_multi_pack_index_usage[] = {
>> - N_("git multi-pack-index [--object-dir=<dir>] write"),
>> + N_("git multi-pack-index [--object-dir=<dir>] [write|verify]"),
> Nit: The square brackets make the verb optional. You probably want
> parenthesis to indicate that one or the other is required:
>
> git multi-pack-index [--object-dir=<dir>] (write|verify)Thanks for catching this mistake! This would be easy to miss and keep around forever.