Skip to content

Commit 9ae8e00

Browse files
dmpotgitster
authored andcommitted
correct usage help string for git-hash-object
The usage string is corrected to make it fit in 80 columns and to make it unequivocal about what options can be used with --stdin-paths. Signed-off-by: Dmitry Potapov <dpotapov@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 8101407 commit 9ae8e00

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Documentation/git-hash-object.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ git-hash-object - Compute object ID and optionally creates a blob from a file
88

99
SYNOPSIS
1010
--------
11-
'git hash-object' [-t <type>] [-w] [--stdin | --stdin-paths] [--] <file>...
11+
[verse]
12+
'git hash-object' [-t <type>] [-w] [--stdin] [--] <file>...
13+
'git hash-object' [-t <type>] [-w] --stdin-paths < <list-of-paths>
1214

1315
DESCRIPTION
1416
-----------

hash-object.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ static void hash_stdin_paths(const char *type, int write_objects)
5050
}
5151

5252
static const char hash_object_usage[] =
53-
"git hash-object [ [-t <type>] [-w] [--stdin] <file>... | --stdin-paths < <list-of-paths> ]";
53+
"git hash-object [-t <type>] [-w] [--stdin] [--] <file>...\n"
54+
" or: git hash-object --stdin-paths < <list-of-paths>";
5455

5556
int main(int argc, char **argv)
5657
{

0 commit comments

Comments
 (0)