chiark / gitweb /
commitid.scad.pl: Provide Full*T
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:51:10 +0000 (18:51 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:51:10 +0000 (18:51 +0000)
commitid.scad.pl

index 2da787311e2f9d9b6d8d9996a6e29b9469ca999b..48585d5fd11909e402306a99ede5870aa166545c 100755 (executable)
@@ -104,6 +104,12 @@ $SIG{__WARN__} = sub { die @_; };
 #       If tree is dirty, + or * is suffixed to count (but not to
 #       commitid) reducing number of digits by 1.
 #
+#   Full6T
+#   Full9T
+#   Full12T
+#   Full15T
+#       As Full but commit is split over two lines for a 3-line message
+#
 #   FontDemo
 #
 #   Arg0, Arg1, ...
@@ -355,6 +361,14 @@ sub do_git () {
            gentextmodule("Full$sz",
                          rjustt($sz, $git_count.$git_dirty),
                          ljustt($sz, $git_object, ''));
+
+           if (!($sz % 2)) {
+               my $e = $sz/2;
+               gentextmodule("Full".($e*3)."T",
+                             rjustt($e, $git_count),
+                             ljustt($e*2, $git_object, $git_dirty)
+                             =~ m/.{$e}/g);
+           }
        }
     }
 }