From: Dmitry Potapov Date: Sun, 3 Aug 2008 14:36:19 +0000 (+0400) Subject: correct usage help string for git-hash-object X-Git-Tag: v1.6.1-rc1~340^2~3 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9ae8e008abf2e05dee59142fae068ae1f9004147;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt index ac928e198..a4703ec0d 100644 --- a/Documentation/git-hash-object.txt +++ b/Documentation/git-hash-object.txt @@ -8,7 +8,9 @@ git-hash-object - Compute object ID and optionally creates a blob from a file SYNOPSIS -------- -'git hash-object' [-t ] [-w] [--stdin | --stdin-paths] [--] ... +[verse] +'git hash-object' [-t ] [-w] [--stdin] [--] ... +'git hash-object' [-t ] [-w] --stdin-paths < DESCRIPTION ----------- diff --git a/hash-object.c b/hash-object.c index 7acfae15d..bb7c5dc6e 100644 --- a/hash-object.c +++ b/hash-object.c @@ -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 ] [-w] [--stdin] ... | --stdin-paths < ]"; +"git hash-object [-t ] [-w] [--stdin] [--] ...\n" +" or: git hash-object --stdin-paths < "; int main(int argc, char **argv) {