Documentation: clarify which parameters are optional to git-cherry
An earlier parameter is only optional when all of the later parameters are omitted. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Markus Heidelberg committed
Jan 1, 2009 at 22:56 UTC
3bc52d7a95676bcdeeb61c372b44358daf817baa
2 files changed
+2
-2
Documentation/git-cherry.txt
+1
-1
@@ -7,7 +7,7 @@ git-cherry - Find commits not merged upstream
7
8
SYNOPSIS
9
--------
10
-'git cherry' [-v] [<upstream>] [<head>] [<limit>]
10
+'git cherry' [-v] [<upstream> [<head> [<limit>]]]
11
12
DESCRIPTION
13
-----------
builtin-log.c
+1
-1
@@ -1071,7 +1071,7 @@ static int add_pending_commit(const char *arg, struct rev_info *revs, int flags)
1071
}
1072
1073
static const char cherry_usage[] =
1074
-"git cherry [-v] [<upstream>] [<head>] [<limit>]";
1074
+"git cherry [-v] [<upstream> [<head> [<limit>]]]";
1075
int cmd_cherry(int argc, const char **argv, const char *prefix)
1076
{
1077
struct rev_info revs;