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>
This commit is contained in:
Dmitry Potapov 2008-08-03 18:36:19 +04:00 committed by Junio C Hamano
parent 81014073f2
commit 9ae8e008ab
2 changed files with 5 additions and 2 deletions

View file

@ -8,7 +8,9 @@ git-hash-object - Compute object ID and optionally creates a blob from a file
SYNOPSIS
--------
'git hash-object' [-t <type>] [-w] [--stdin | --stdin-paths] [--] <file>...
[verse]
'git hash-object' [-t <type>] [-w] [--stdin] [--] <file>...
'git hash-object' [-t <type>] [-w] --stdin-paths < <list-of-paths>
DESCRIPTION
-----------

View file

@ -50,7 +50,8 @@ static void hash_stdin_paths(const char *type, int write_objects)
}
static const char hash_object_usage[] =
"git hash-object [ [-t <type>] [-w] [--stdin] <file>... | --stdin-paths < <list-of-paths> ]";
"git hash-object [-t <type>] [-w] [--stdin] [--] <file>...\n"
" or: git hash-object --stdin-paths < <list-of-paths>";
int main(int argc, char **argv)
{