aboutsummaryrefslogtreecommitdiffstats
path: root/builtin/show-index.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-12-20 10:02:15 -0800
committerJunio C Hamano <gitster@pobox.com>2024-12-20 17:30:57 -0800
commit49edce4ff96d003e2b50202105107ef42e1f730e (patch)
treea74971a8c119fc33690be666e2f6054135ee8e75 /builtin/show-index.c
parent92999a42db1c5f43f330e4f2bca4026b5b81576f (diff)
downloadgit-49edce4ff96d003e2b50202105107ef42e1f730e.tar.gz
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 'builtin/show-index.c')
-rw-r--r--builtin/show-index.c2
1 files changed, 1 insertions, 1 deletions
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
};