[PATCH 2/5] correct usage help string for git-hash-object
- From
Dmitry Potapov <dpotapov@gmail.com>
- Date
- Aug 3, 2008, 14:36 UTC
- Message-ID
- <1217774182-28566-2-git-send-email-dpotapov@gmail.com>
- In-Reply-To
- <1217774182-28566-1-git-send-email-dpotapov@gmail.com>
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> --- Documentation/git-hash-object.txt | 4 +++- hash-object.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt index ac928e1..a4703ec 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 <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 ----------- diff --git a/hash-object.c b/hash-object.c index ce027b9..ac44b4e 100644 --- a/hash-object.c +++ b/hash-object.c @@ -49,7 +49,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) {
-- 1.6.0.rc1.58.gacdf