Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/Documentation/asciidoc.conf.in # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / Documentation / asciidoc.conf.in` 104 lines ยท 4217 bytes Raw Blame History 1 ## linkgit: macro 2 # 3 # Usage: linkgit:command[manpage-section] 4 # 5 # Note, {0} is the manpage section, while {target} is the command. 6 # 7 # Show Git link as: (
); if section is defined, else just show 8 # the command. 9 10 [macros] 11 (?su)[\\]?(?Plinkgit):(?P\S*?)\[(?P.*?)\]= 12 13 [attributes] 14 asterisk=* 15 plus=+ 16 caret=^ 17 startsb=[ 18 endsb=] 19 backslash=\ 20 tilde=~ 21 apostrophe=' 22 backtick=` 23 litdd=-- 24 manmanual=Git Manual 25 mansource=Git @GIT_VERSION@ 26 revdate=@GIT_DATE@ 27 28 ifdef::doctype-book[] 29 [titles] 30 underlines="__","==","--","~~","^^" 31 endif::doctype-book[] 32 33 ifdef::backend-docbook[] 34 [linkgit-inlinemacro] 35 ifndef::doctype-book[] 36 {0%{target}} 37 {0#} 38 {0#{target}{0}} 39 {0#} 40 endif::doctype-book[] 41 ifdef::doctype-book[] 42 {target}{0?({0})} 43 endif::doctype-book[] 44 45 [literal-inlinemacro] 46 {eval:re.sub(r'(<[-a-zA-Z0-9.]+>)', r'\1', re.sub(r'([\[\s|()>]|^|\]|>)(\.?([-a-zA-Z0-9:+=~@\\\*\/_^\$%]+\.?)+|,)',r'\1\2', re.sub(r'(\.\.\.?)([^\]$.])', r'\1\2', macros.passthroughs[int(attrs['passtext'][1:-1])] if attrs['passtext'][1:-1].isnumeric() else attrs['passtext'][1:-1])))} 47 48 endif::backend-docbook[] 49 50 ifdef::backend-docbook[] 51 ifdef::doctype-manpage[] 52 # The following two small workarounds insert a simple paragraph after screen 53 [listingblock] 54 {title} 55 56 | 57 58 {title#} 59 60 [verseblock] 61 {title} 62 {title%} 63 {title#} 64 | 65 66 {title#} 67 {title%} 68 endif::doctype-manpage[] 69 endif::backend-docbook[] 70 71 ifdef::backend-xhtml11[] 72 [attributes] 73 git-relative-html-prefix= 74 [linkgit-inlinemacro] 75 {target}{0?({0})} 76 77 [literal-inlinemacro] 78 {eval:re.sub(r'(<[-a-zA-Z0-9.]+>)', r'\1', re.sub(r'([\[\s|()>]|^|\]|>)(\.?([-a-zA-Z0-9:+=~@,\\\*\/_^\$]+\.?)+)',r'\1\2', re.sub(r'(\.\.\.?)([^\]$.])', r'\1\2', macros.passthroughs[int(attrs['passtext'][1:-1])] if attrs['passtext'][1:-1].isnumeric() else attrs['passtext'][1:-1])))} 79 80 endif::backend-xhtml11[] 81 82 ifdef::backend-docbook[] 83 ifdef::doctype-manpage[] 84 [blockdef-open] 85 synopsis-style=template="verseparagraph",filter="sed 's!…\\(\\]\\|$\\)!\\0!g;s!\\([\\[ |()]\\|^\\|\\]\\|>\\)\\([-=a-zA-Z0-9:+@,\\/_^\\$.\\\\\\*]\\+\\|…\\)!\\1\\2!g;s!<[-a-zA-Z0-9.]\\+>!\\0!g'" 86 87 [blockdef-listing] 88 synopsis-style=template="verseparagraph",filter="sed 's!…\\(\\]\\|$\\)!\\0!g;s!\\([\\[ |()]\\|^\\|\\]\\|>\\)\\([-=a-zA-Z0-9:+@,\\/_^\\$.\\\\\\*]\\+\\|…\\)!\\1\\2!g;s!<[-a-zA-Z0-9.]\\+>!\\0!g'" 89 90 [paradef-default] 91 synopsis-style=template="verseparagraph",filter="sed 's!…\\(\\]\\|$\\)!\\0!g;s!\\([\\[ |()]\\|^\\|\\]\\|>\\)\\([-=a-zA-Z0-9:+@,\\/_^\\$.\\\\\\*]\\+\\|…\\)!\\1\\2!g;s!<[-a-zA-Z0-9.]\\+>!\\0!g'" 92 endif::doctype-manpage[] 93 endif::backend-docbook[] 94 95 ifdef::backend-xhtml11[] 96 [blockdef-open] 97 synopsis-style=template="verseparagraph",filter="sed 's!…\\(\\]\\|$\\)!\\0!g;s!\\([\\[ |()]\\|^\\|\\]\\|>\\)\\([-=a-zA-Z0-9:+@,\\/_^\\$.\\\\\\*]\\+\\|…\\)!\\1\\2!g;s!<[-a-zA-Z0-9.]\\+>!\\0!g'" 98 99 [blockdef-listing] 100 synopsis-style=template="verseparagraph",filter="sed 's!…\\(\\]\\|$\\)!\\0!g;s!\\([\\[ |()]\\|^\\|\\]\\|>\\)\\([-=a-zA-Z0-9:+@,\\/_^\\$.\\\\\\*]\\+\\|…\\)!\\1\\2!g;s!<[-a-zA-Z0-9.]\\+>!\\0!g'" 101 102 [paradef-default] 103 synopsis-style=template="verseparagraph",filter="sed 's!…\\(\\]\\|$\\)!\\0!g;s!\\([\\[ |()]\\|^\\|\\]\\|>\\)\\([-=a-zA-Z0-9:+@,\\/_^\\$.\\\\\\*]\\+\\|…\\)!\\1\\2!g;s!<[-a-zA-Z0-9.]\\+>!\\0!g'" 104 endif::backend-xhtml11[]