diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-12-20 10:02:15 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-12-20 17:30:57 -0800 |
| commit | 49edce4ff96d003e2b50202105107ef42e1f730e (patch) | |
| tree | a74971a8c119fc33690be666e2f6054135ee8e75 | |
| parent | Git 2.47.1 (diff) | |
| download | git-49edce4ff96d003e2b50202105107ef42e1f730e.tar.gz git-49edce4ff96d003e2b50202105107ef42e1f730e.zip | |
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>
Diffstat (limited to '')
| -rw-r--r-- | Documentation/git-show-index.txt | 2 | ||||
| -rw-r--r-- | builtin/show-index.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-show-index.txt b/Documentation/git-show-index.txt index e49318a5a0..7e574ea243 100644 --- a/Documentation/git-show-index.txt +++ b/Documentation/git-show-index.txt @@ -9,7 +9,7 @@ git-show-index - Show packed archive index SYNOPSIS -------- [verse] -'git show-index' [--object-format=<hash-algorithm>] +'git show-index' [--object-format=<hash-algorithm>] < <pack-idx-file> DESCRIPTION diff --git a/builtin/show-index.c b/builtin/show-index.c index f164c01bbe..8678b741a4 100644 --- a/builtin/show-index.c +++ b/builtin/show-index.c @@ -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 }; |
