summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8101407)
raw | patch | inline | side by side (parent: 8101407)
author | Dmitry Potapov <dpotapov@gmail.com> | |
Sun, 3 Aug 2008 14:36:19 +0000 (18:36 +0400) | ||
committer | Junio 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>
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 | patch | blob | history | |
hash-object.c | patch | blob | history |
index ac928e198e75595a6fcd4e83b89aaf68987bd420..a4703ec0defe4686780184354120e666b79f26f6 100644 (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 7acfae15d9e946e0002f1f0850718b64bfe55768..bb7c5dc6eebbb705e61ad8c8703043816c4fd998 100644 (file)
--- a/hash-object.c
+++ b/hash-object.c
}
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)
{