correct usage help string for git-hash-object
authorDmitry Potapov <dpotapov@gmail.com>
Sun, 3 Aug 2008 14:36:19 +0000 (18:36 +0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 3 Aug 2008 20:23:15 +0000 (13:23 -0700)
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>
Documentation/git-hash-object.txt
hash-object.c
index ac928e198e75595a6fcd4e83b89aaf68987bd420..a4703ec0defe4686780184354120e666b79f26f6 100644 (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
 -----------
index 7acfae15d9e946e0002f1f0850718b64bfe55768..bb7c5dc6eebbb705e61ad8c8703043816c4fd998 100644 (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)
 {