diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-10-10 14:22:24 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-10-10 14:22:24 -0700 |
| commit | 799450316b606d4b6cd5db6a6cc814f1710d923f (patch) | |
| tree | 6f1b702fe01db4ada7ea0e66f3ef950ec2d3f7fb /t | |
| parent | 777489f9e09c8d0dd6b12f9d90de6376330577a2 (diff) | |
| parent | 22293895c000e89997b2197a7b2b17cdf3a36369 (diff) | |
| download | git-799450316b606d4b6cd5db6a6cc814f1710d923f.tar.gz | |
Merge branch 'ja/doc-synopsis-markup'
The way AsciiDoc is used for SYNOPSIS part of the manual pages has
been revamped. The sources, at least for the simple cases, got
vastly pleasant to work with.
* ja/doc-synopsis-markup:
doc: apply synopsis simplification on git-clone and git-init
doc: update the guidelines to reflect the current formatting rules
doc: introduce a synopsis typesetting
Diffstat (limited to 't')
| -rwxr-xr-x | t/t0450-txt-doc-vs-help.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/t/t0450-txt-doc-vs-help.sh b/t/t0450-txt-doc-vs-help.sh index 69917d7b84..f99a69ae1b 100755 --- a/t/t0450-txt-doc-vs-help.sh +++ b/t/t0450-txt-doc-vs-help.sh @@ -56,14 +56,11 @@ txt_to_synopsis () { fi && b2t="$(builtin_to_txt "$builtin")" && sed -n \ - -e '/^\[verse\]$/,/^$/ { + -E '/^\[(verse|synopsis)\]$/,/^$/ { /^$/d; - /^\[verse\]$/d; - s/_//g; - s/++//g; - s/`//g; - s/{litdd}/--/g; - s/'\''\(git[ a-z-]*\)'\''/\1/g; + /^\[(verse|synopsis)\]$/d; + s/\{litdd\}/--/g; + s/'\''(git[ a-z-]*)'\''/\1/g; p; }' \ |
