aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Noël Avila <jn.avila@free.fr>2024-03-29 11:19:38 +0000
committerJunio C Hamano <gitster@pobox.com>2024-03-29 10:57:40 -0700
commit71d9f5a19f8e6be893c4a0dfb43443f7bc545235 (patch)
treeef304f42e142d0f84735ede15e6e25bed4c29efc
parentc42ea60495897884f2daff011026661c1819eb65 (diff)
downloadgit-71d9f5a19f8e6be893c4a0dfb43443f7bc545235.tar.gz
doc: allow literal and emphasis format in doc vs help tests
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>
-rwxr-xr-xt/t0450-txt-doc-vs-help.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/t0450-txt-doc-vs-help.sh b/t/t0450-txt-doc-vs-help.sh
index cd3969e852..69917d7b84 100755
--- a/t/t0450-txt-doc-vs-help.sh
+++ b/t/t0450-txt-doc-vs-help.sh
@@ -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;