]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: the mode param of -u of git commit is optional
authorJean-Noël Avila <jn.avila@free.fr>
Wed, 15 Jan 2025 20:23:45 +0000 (20:23 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 15 Jan 2025 22:43:36 +0000 (14:43 -0800)
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>
Documentation/git-commit.txt
builtin/commit.c

index e37c4a4987eca11bd5a914ba4837c929726bc841..f5d702205d2f855ce0157d090920a3cce3fc2657 100644 (file)
@@ -8,7 +8,7 @@ git-commit - Record changes to the repository
 SYNOPSIS
 --------
 [synopsis]
-git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]
+git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]
           [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]
           [-F <file> | -m <msg>] [--reset-author] [--allow-empty]
           [--allow-empty-message] [--no-verify] [-e] [--author=<author>]
index ef5e622c07746f86bb6d2fb2b909361bef1d1b10..a7315ed67ccb145ba06453a9c3d96ecc8f145823 100644 (file)
@@ -44,7 +44,7 @@
 #include "trailer.h"
 
 static const char * const builtin_commit_usage[] = {
-       N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u<mode>] [--amend]\n"
+       N_("git commit [-a | --interactive | --patch] [-s] [-v] [-u[<mode>]] [--amend]\n"
           "           [--dry-run] [(-c | -C | --squash) <commit> | --fixup [(amend|reword):]<commit>]\n"
           "           [-F <file> | -m <msg>] [--reset-author] [--allow-empty]\n"
           "           [--allow-empty-message] [--no-verify] [-e] [--author=<author>]\n"