Skip to content

Commit d533c10

Browse files
jnavilagitster
authored andcommitted
doc: the mode param of -u of git commit is optional
Fix the synopsis to reflect the option description. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent be2ea67 commit d533c10

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Documentation/git-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ git-commit - Record changes to the repository
88
SYNOPSIS
99
--------
1010
[synopsis]
11-
git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
11+
git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]
1212
[--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]
1313
[-F <file> | -m <msg>] [--reset-author] [--allow-empty]
1414
[--allow-empty-message] [--no-verify] [-e] [--author=<author>]

builtin/commit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#include "trailer.h"
4545

4646
static const char * const builtin_commit_usage[] = {
47-
N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]\n"
47+
N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]\n"
4848
" [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]\n"
4949
" [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
5050
" [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"

0 commit comments

Comments
 (0)