]> git.ipfire.org Git - thirdparty/git.git/commit
show-index: the short help should say the command reads from its input
authorJunio C Hamano <gitster@pobox.com>
Fri, 20 Dec 2024 18:02:15 +0000 (10:02 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 21 Dec 2024 01:30:57 +0000 (17:30 -0800)
commit49edce4ff96d003e2b50202105107ef42e1f730e
treea74971a8c119fc33690be666e2f6054135ee8e75
parent92999a42db1c5f43f330e4f2bca4026b5b81576f
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>
Documentation/git-show-index.txt
builtin/show-index.c