]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: allow literal and emphasis format in doc vs help tests
authorJean-Noël Avila <jn.avila@free.fr>
Fri, 29 Mar 2024 11:19:38 +0000 (11:19 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 29 Mar 2024 17:57:40 +0000 (10:57 -0700)
As the new formatting of literal and placeholders is introduced,
the synopsis in the man pages can now hold additional markup with
respect to the command help.

Signed-off-by: Jean-Noël Avila <jn.avila@free.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t0450-txt-doc-vs-help.sh

index cd3969e852bb06fa3361cd9e8e13d71c5fb514c4..69917d7b8459c6f3ad71326b25c9fabe731a5b4a 100755 (executable)
@@ -59,7 +59,9 @@ txt_to_synopsis () {
                -e '/^\[verse\]$/,/^$/ {
                        /^$/d;
                        /^\[verse\]$/d;
-
+                       s/_//g;
+                       s/++//g;
+                       s/`//g;
                        s/{litdd}/--/g;
                        s/'\''\(git[ a-z-]*\)'\''/\1/g;