mirror of
https://github.com/git/git
synced 2024-10-02 14:45:21 +00:00
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>
This commit is contained in:
parent
c42ea60495
commit
71d9f5a19f
|
@ -59,7 +59,9 @@ txt_to_synopsis () {
|
||||||
-e '/^\[verse\]$/,/^$/ {
|
-e '/^\[verse\]$/,/^$/ {
|
||||||
/^$/d;
|
/^$/d;
|
||||||
/^\[verse\]$/d;
|
/^\[verse\]$/d;
|
||||||
|
s/_//g;
|
||||||
|
s/++//g;
|
||||||
|
s/`//g;
|
||||||
s/{litdd}/--/g;
|
s/{litdd}/--/g;
|
||||||
s/'\''\(git[ a-z-]*\)'\''/\1/g;
|
s/'\''\(git[ a-z-]*\)'\''/\1/g;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue