aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorD. Ben Knoble <ben.knoble+github@gmail.com>2025-11-02 11:17:45 -0500
committerJunio C Hamano <gitster@pobox.com>2025-11-04 09:25:51 -0800
commit2fd151af1393fb8b380820ef6d64a5241258a0b0 (patch)
tree76526e323c38fb9e8e887715e5cb67bce0abadce
parentparseopt: fix :(optional) at command line to only ignore missing files (diff)
downloadgit-2fd151af1393fb8b380820ef6d64a5241258a0b0.tar.gz
git-2fd151af1393fb8b380820ef6d64a5241258a0b0.zip
doc: clarify command equivalence comment
Documentation of command parsing for :(optional) includes a terse comment; expand it to be clearer to readers. Suggested-by: Phillip Wood <phillip.wood@dunelm.org.uk> Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/gitcli.adoc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/gitcli.adoc b/Documentation/gitcli.adoc
index ef2a0a399d..6815d6bfb7 100644
--- a/Documentation/gitcli.adoc
+++ b/Documentation/gitcli.adoc
@@ -223,7 +223,7 @@ Options that take a filename allow a prefix `:(optional)`. For example:
----------------------------
git commit -F :(optional)COMMIT_EDITMSG
-# if COMMIT_EDITMSG does not exist, equivalent to
+# if COMMIT_EDITMSG does not exist, the above is equivalent to
git commit
----------------------------