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>
Dmitry Potapov committed
Aug 3, 2008 at 18:36 UTC
9ae8e008abf2e05dee59142fae068ae1f9004147
2 files changed
+5
-2
Documentation/git-hash-object.txt
+3
-1
@@ -8,7 +8,9 @@ git-hash-object - Compute object ID and optionally creates a blob from a file
8
9
SYNOPSIS
10
--------
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>
14
15
DESCRIPTION
16
-----------
hash-object.c
+2
-1
@@ -50,7 +50,8 @@ static void hash_stdin_paths(const char *type, int write_objects)
50
}
51
52
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>";
55
56
int main(int argc, char **argv)
57
{