chiark / gitweb /
commitid: Consistently use "Objid"
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 22:12:28 +0000 (22:12 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 22:12:28 +0000 (22:12 +0000)
commitid.scad.pl

index 3b20d6275ec4a11a25f4b01e85cc0386141b1664..65963be2734aca3fa7918f741e683f849c9f5230 100755 (executable)
@@ -15,7 +15,7 @@ $SIG{__WARN__} = sub { die @_; };
 #   --git    generate git commit indications, as shown below
 #            (this is the default if no strings are requested with -t)
 #
-#   --git=object
+#   --git=objid
 #            generate git commit indication based on commit object only
 #            (ie avoid counting commits)
 #
@@ -36,6 +36,14 @@ $SIG{__WARN__} = sub { die @_; };
 #    $Commitid_depth_scale    if not set, we use 1.0 (multiplies depth above)
 #    $Commitid_max_best_scale if not set, we use 2.0 (max mult of xy in Best)
 #
+# We have auto-sizing modules:
+#
+#   module Commitid_BestCount_2D(max_sz, margin=Commitid_pixelsz()) { ... }
+#   module Commitid_BestCount   (max_sz, margin=Commitid_pixelsz()) { ... }
+#   module Commitid_BestObjid_2D(max_sz, margin=Commitid_pixelsz()) { ... }
+#   module Commitid_BestObjid   (max_sz, margin=Commitid_pixelsz()) { ... }
+#      // max_sz should be [x,y]
+#
 # For each form we have
 #
 #    module Commitid_Form_2D() { ... }
@@ -465,7 +473,7 @@ while (@ARGV) {
     $_ = shift;
     if (m/^--(no)?-git$/) {
        $do_git = $1 ? '' : 'co';
-    } elsif (m/^---git=object$/) {
+    } elsif (m/^---git=objid$/i) {
        $do_git = 'o';
     } elsif (m/^-i$/) {
        $do_git_untracked = 0;