From: Mark Lodato Date: Sat, 18 Dec 2010 05:38:45 GMT Subject: [PATCH 8/8] describe docs: note that is optional Message-ID: <1292650725-21149-9-git-send-email-lodatom@gmail.com> In-Reply-To: <1292650725-21149-1-git-send-email-lodatom@gmail.com> Signed-off-by: Mark Lodato --- Documentation/git-describe.txt | 3 ++- Documentation/gitcli.txt | 2 +- builtin/describe.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/git-describe.txt b/Documentation/git-describe.txt index ad173ed..8006d59 100644 --- a/Documentation/git-describe.txt +++ b/Documentation/git-describe.txt @@ -9,7 +9,7 @@ git-describe - Show the most recent tag that is reachable from a commit SYNOPSIS -------- [verse] -'git describe' [--all] [--tags] [--contains] [--abbrev=] ... +'git describe' [--all] [--tags] [--contains] [--abbrev=] [...] 'git describe' [--all] [--tags] [--contains] [--abbrev=] --dirty[=] DESCRIPTION @@ -28,6 +28,7 @@ OPTIONS ------- ...:: Commit object names to describe. + If not given, defaults to HEAD. --dirty[=]:: Describe the working tree. diff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt index b56e7c3..e57f88c 100644 --- a/Documentation/gitcli.txt +++ b/Documentation/gitcli.txt @@ -81,7 +81,7 @@ couple of magic command line options: + --------------------------------------------- $ git describe -h -usage: git describe [options] ... +usage: git describe [options] [...] --contains find the tag that comes after the commit --debug debug search strategy on stderr diff --git a/builtin/describe.c b/builtin/describe.c index 4b5a217..82da278 100644 --- a/builtin/describe.c +++ b/builtin/describe.c @@ -12,7 +12,7 @@ #define MAX_TAGS (FLAG_BITS - 1) static const char * const describe_usage[] = { - "git describe [options] ...", + "git describe [options] [...]", "git describe [options] --dirty", NULL }; -- 1.7.3.2