3 # Usage: gitlink:command[manpage-section]
5 # Note, {0} is the manpage section, while {target} is the command.
7 # Show GIT link as: <command>(<section>); if section is defined, else just show
17 ifdef::backend-docbook[]
21 {0#<refentrytitle>{target}</refentrytitle><manvolnum>{0}</manvolnum>}
23 endif::backend-docbook[]
25 ifdef::backend-docbook[]
26 # "unbreak" docbook-xsl v1.68 for manpages. v1.69 works with or without this.
28 <example><title>{title}</title>
33 endif::backend-docbook[]
35 ifdef::doctype-manpage[]
36 ifdef::backend-docbook[]
38 template::[header-declarations]
41 <refentrytitle>{mantitle}</refentrytitle>
42 <manvolnum>{manvolnum}</manvolnum>
43 <refmiscinfo class="source">Git</refmiscinfo>
44 <refmiscinfo class="version">{git_version}</refmiscinfo>
45 <refmiscinfo class="manual">Git Manual</refmiscinfo>
48 <refname>{manname}</refname>
49 <refpurpose>{manpurpose}</refpurpose>
51 endif::backend-docbook[]
52 endif::doctype-manpage[]
54 ifdef::backend-xhtml11[]
56 <a href="{target}.html">{target}{0?({0})}</a>
57 endif::backend-xhtml11[]