# HG changeset patch # User markus schnalke # Date 1338633563 -7200 # Node ID d6840bfbe04c7c1c0190584247cd27c705db0057 # Parent f80ced4e749bafcca5f7cdcd16a36cfc3ac59315 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. diff -r f80ced4e749b -r d6840bfbe04c style --- 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 ..