Skip to content

Commit 3bc52d7

Browse files
marcowsgitster
authored andcommitted
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>
1 parent f296802 commit 3bc52d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-cherry.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git-cherry - Find commits not merged upstream
77

88
SYNOPSIS
99
--------
10-
'git cherry' [-v] [<upstream>] [<head>] [<limit>]
10+
'git cherry' [-v] [<upstream> [<head> [<limit>]]]
1111

1212
DESCRIPTION
1313
-----------

builtin-log.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1071,7 +1071,7 @@ static int add_pending_commit(const char *arg, struct rev_info *revs, int flags)
10711071
}
10721072

10731073
static const char cherry_usage[] =
1074-
"git cherry [-v] [<upstream>] [<head>] [<limit>]";
1074+
"git cherry [-v] [<upstream> [<head> [<limit>]]]";
10751075
int cmd_cherry(int argc, const char **argv, const char *prefix)
10761076
{
10771077
struct rev_info revs;

0 commit comments

Comments
 (0)