show-index: the short help should say the command reads from its input

The short help text given by "git show-index -h" says

    $ git show-index -h
    usage: git show-index [--object-format=<hash-algorithm>]

        --[no-]object-format <hash-algorithm>
                              specify the hash algorithm to use

The command takes a pack .idx file from its standard input.  The
user has to _know_ this, as there is no indication from this output.

Give a hint that the data to work on is fed from its standard input.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Junio C Hamano
2024-12-20 10:02:15 -08:00
parent 92999a42db
commit 49edce4ff9
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
#include "parse-options.h"
static const char *const show_index_usage[] = {
"git show-index [--object-format=<hash-algorithm>]",
"git show-index [--object-format=<hash-algorithm>] < <pack-idx-file>",
NULL
};