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>
main
D. Ben Knoble 2025-11-02 11:17:45 -05:00 committed by Junio C Hamano
parent aece3bc266
commit 2fd151af13
1 changed files with 1 additions and 1 deletions

View File

@ -223,7 +223,7 @@ Options that take a filename allow a prefix `:(optional)`. For example:


---------------------------- ----------------------------
git commit -F :(optional)COMMIT_EDITMSG 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 git commit
---------------------------- ----------------------------