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 <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jean-Noël Avila committed
Jan 15, 2025 at 20:23 UTC
d533c1069724d39153f5ae78f2c3a3f2b6a5a6e2
2 files changed
+2
-2
Documentation/git-commit.txt
+1
-1
@@ -8,7 +8,7 @@ git-commit - Record changes to the repository
8
SYNOPSIS
9
--------
10
[synopsis]
11
-git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
11
+git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]
12
[--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]
13
[-F <file> | -m <msg>] [--reset-author] [--allow-empty]
14
[--allow-empty-message] [--no-verify] [-e] [--author=<author>]
builtin/commit.c
+1
-1
@@ -44,7 +44,7 @@
44
#include "trailer.h"
45
46
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"
48
" [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]\n"
49
" [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
50
" [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"