Skip to content

Commit 3e20693

Browse files
gitsterdscho
authored andcommitted
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>
1 parent 5cc2d6c commit 3e20693

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: Documentation/git-show-index.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ git-show-index - Show packed archive index
99
SYNOPSIS
1010
--------
1111
[verse]
12-
'git show-index' [--object-format=<hash-algorithm>]
12+
'git show-index' [--object-format=<hash-algorithm>] < <pack-idx-file>
1313

1414

1515
DESCRIPTION

Diff for: builtin/show-index.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include "parse-options.h"
1010

1111
static const char *const show_index_usage[] = {
12-
"git show-index [--object-format=<hash-algorithm>]",
12+
"git show-index [--object-format=<hash-algorithm>] < <pack-idx-file>",
1313
NULL
1414
};
1515

0 commit comments

Comments
 (0)