docs/master
view style @ 70:d6840bfbe04c
style: Use .substring to print only a prefix of the commit hash.
I can decide later how long a prefix I like to print.
If your troff doesn't support .substring, the whole hash is printed.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Sat, 02 Jun 2012 12:39:23 +0200 |
parents | 26a2e3d2f9d3 |
children | 4e1715537e2f |
line source
1 .do xflag 3
2 .de __
3 ..
4 .blm __ \" ignore empty lines in input
5 .lc_ctype en_US.utf8
6 .mediasize a4
8 .fp 1 R LinLibertine_R otf
9 .feature R +onum
10 .fp 2 I LinLibertine_RI otf
11 .feature I +onum
12 .fp 3 B LinLibertine_RB otf
13 .feature B +onum
14 .fp 4 BI LinLibertine_RBI otf
15 .feature BI +onum
16 .fp 5 CW TerminusMedium-4.36 ttf
17 .fp 0 CI TerminusMediumItalic-4.36 ttf
18 .fp 0 CB TerminusBold-4.36 ttf
19 .fp 0 L TerminusMedium-4.36 ttf
20 .fp 0 SC LinLibertine_R otf
21 .feature SC +onum +smcp
22 .fp 0 IC LinLibertine_RI otf
23 .feature IC +onum +smcp
24 .fp 0 BC LinLibertine_RB otf
25 .feature BC +onum +smcp
27 .ig
28 . nr PS 10
29 . nr VS 12
30 ..
32 .nr PI 3n
33 .nr PD .3v
34 .nr lu 0
35 .af PN i
37 .ds _E '\\\\n(PN''\f(SCMarkus Schnalke: The Modern Mail Handler\fP' \" left
38 .ds _O '\f(SCChapter \\\\n(H1\ \ \\\\*(_C\fP''\\\\n(PN' \" right
39 .ds _o '\f(SC\\\\*(_C\fP''\\\\n(PN' \" right
40 .ds CH "
42 .nr HM 3.3c
43 .nr FM 6.6c
44 .nr LL 14c
45 .ll 14c
46 .nr LT \n(LL
47 .if t .nr PO 2.3c
49 .de _M \" change margins for text block on next page
50 .if t .if e .nr PO -2.3c
51 .if t .if o .nr PO +2.3c
52 .ds CF "
53 ..
54 .wh -1u _M
56 .de CW
57 .nr PQ \\n(.f
58 .if t \{\
59 . ft CW
60 . if !^\\$1^^ \&\\$1\f\\n(PQ\\$2
61 .\}
62 .if n \{\
63 . ie ^\\$1^^ .ul 999
64 . el .ul 1
65 . if \\n(.$=1 \&\\$1
66 . if \\n(.$>1 \&\\$1\c
67 . if \\n(.$>1 \&\\$2
68 .\}
69 ..
71 .ds [. " [
72 .ds .] ]
73 .rm ]<
74 .de ]<
75 . LP
76 . de FP
77 . IP \\\\$1.
78 \\..
79 . rm FS FE
80 ..
82 .am PT
83 . rs
84 ..
86 .rm NH
87 .de NH
88 .SH
89 .nr NS \\$1
90 .if !\\n(.$ .nr NS 1
91 .if !\\n(NS .nr NS 1
92 .nr H\\n(NS +1
93 .if \\n(NS<2 .nr H2 0
94 .if \\n(NS<3 .nr H3 0
95 .ds SN \\n(H1
96 .if \\n(NS>1 .as SN \&.\\n(H2
97 .if \\n(NS>2 .as SN \&.\\n(H3
98 ..
100 .de H-
101 .EH "
102 .OH "
103 .bp
104 .rs
105 .if e .bp
106 .lg 0
107 .nr PS +6
108 .nr VS +6
109 .SH
110 .ce 1
111 .tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
112 \&\\$1
113 .br
114 .tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
115 .nr PS -6
116 .nr VS -6
117 .lg
118 .RT
119 .if !,\\$2,no, \{
120 . EH "\\\\*(_E
121 . ie \\n(H1 .OH "\\\\*(_O
122 . el .OH "\\\\*(_o
123 . ds CF \\n(PN
124 .\}
125 .sp 4
126 .nr PP 0
127 ..
129 .de H0
130 .EH "
131 .OH "
132 .bp
133 .rs
134 .if e .bp
135 . lg 0
136 . nr PS +6
137 . nr VS +6
138 .ie \\n(.$=1 \{\
139 . NH 1
140 . ce 1
141 Chapter \\*(SN
142 . sp .5
143 .\}
144 .el .if ,\\$2,no, .SH
145 . ce 1
146 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
147 \&\\$1
148 . br
149 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
150 . nr PS -6
151 . nr VS -6
152 . lg
153 .ds _C "\\$1
154 . RT
155 . XS
156 . sp .5v
157 . B
158 .ie \\n(.$=1 \{\
159 \\*(SN \\$1
160 .\}
161 .el .if ,\\$2,no, \&\\$1
162 . XE
163 .EH "\\\\*(_E
164 .ie \\n(H1 .OH "\\\\*(_O
165 .el .OH "\\\\*(_o
166 .ds CF \\n(PN
167 .sp 4
168 .nr PP 0
169 ..
172 .\" Reset page Numbers, set page number format ($1) and move to a right page.
173 .de RN
174 .ie e .pn 1
175 .el \{
176 . pn 0
177 . bp
178 .\}
179 .ie \\n(.$=1 .af PN \\$1
180 .el .af PN 1
181 ..
184 .de H1
185 .br
186 .ne 7
187 .sp
188 . nr PS +2
189 . nr VS +2
190 .if '\\$2'no' .SH
191 .if \\n(.$=1 .NH 2
192 . lg 0
193 . tr aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ
194 .if !'\\$2'no' \&\\*(SN
195 \\$1
196 . br
197 . tr aabbccddeeffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz
198 . nr PS -2
199 . nr VS -2
200 . lg
201 . RT
202 .if !'\\$2'no' \{\
203 .ds _S "\\$1
204 . XS
205 . sp .3v
206 \\*(SN \\$1
207 . XE
208 .\}
209 .nr PP 0
210 ..
212 .de H2
213 .br
214 .ne 4
215 .NH 3
216 \&\\*(SN
217 \\$1
218 .RT
219 .ds _S "\\$1
220 .XS
221 \\*(SN \\$1
222 .XE
223 .nr PP 0
224 ..
226 .de U2
227 .br
228 .ne 4
229 .SH
230 \\$1
231 .RT
232 .nr PP 0
233 ..
235 .de P
236 .ie \\n(PP .PP
237 .el .LP
238 .nr PP 1
239 ..
241 .am IP
242 .nr PP 0
243 ..
245 .de BU
246 .IP \(bu
247 ..
249 .am QP
250 .ps -1
251 ..
253 .am DS
254 .ft CW
255 .ps -1
256 .ta T 8n
257 ..
259 .am FA
260 .ps 8
261 .vs 9
262 ..
264 .de Fn \" file name
265 .CW "\\$1" "\\$2
266 ..
267 .de Pn \" program name
268 .CW "\\$1" "\\$2
269 ..
270 .de Fu \" function
271 .CW "\\$1" "\\$2
272 ..
273 .de Ev \" env variable
274 .CW "\\$1" "\\$2
275 ..
276 .de Cl \" command line
277 `\c
278 .CW "\\$1" "'\\$2
279 ..
280 .de Sw \" switch
281 .CW "\\$1" "\\$2
282 ..
283 .de Mp \" man page
284 .I "\\$1" "\\$2
285 ..
286 .de Pe \" profile entry
287 .CW "\\$1" "\\$2
288 ..
290 .de Ci \" commit ref
291 .ds _t \\$1
292 .substring _t 0 6
293 [\(rh
294 .CW "\\*(_t" "]\\$2
295 ..