diff 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 wrap: on
line diff
--- a/style	Sat Jun 02 12:00:22 2012 +0200
+++ b/style	Sat Jun 02 12:39:23 2012 +0200
@@ -288,6 +288,8 @@
 ..
 
 .de Ci  \" commit ref
+.ds _t \\$1
+.substring _t 0 6
 [\(rh
-.CW "\\$1" "]\\$2
+.CW "\\*(_t" "]\\$2
 ..