chiark
/
gitweb
/
~ianmdlvl
/
reprap-play.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3c318a7
)
commitid: Consistently use "Objid"
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 22:12:28 +0000
(22:12 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 22:12:28 +0000
(22:12 +0000)
commitid.scad.pl
patch
|
blob
|
history
diff --git
a/commitid.scad.pl
b/commitid.scad.pl
index 3b20d6275ec4a11a25f4b01e85cc0386141b1664..65963be2734aca3fa7918f741e683f849c9f5230 100755
(executable)
--- a/
commitid.scad.pl
+++ b/
commitid.scad.pl
@@
-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 generate git commit indications, as shown below
# (this is the default if no strings are requested with -t)
#
-# --git=obj
ect
+# --git=obj
id
# generate git commit indication based on commit object only
# (ie avoid counting commits)
#
# 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)
#
# $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() { ... }
# For each form we have
#
# module Commitid_Form_2D() { ... }
@@
-465,7
+473,7
@@
while (@ARGV) {
$_ = shift;
if (m/^--(no)?-git$/) {
$do_git = $1 ? '' : 'co';
$_ = shift;
if (m/^--(no)?-git$/) {
$do_git = $1 ? '' : 'co';
- } elsif (m/^---git=obj
ect$/
) {
+ } elsif (m/^---git=obj
id$/i
) {
$do_git = 'o';
} elsif (m/^-i$/) {
$do_git_untracked = 0;
$do_git = 'o';
} elsif (m/^-i$/) {
$do_git_untracked = 0;