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:
7c6fcf7
)
commitid.scad.pl: docs updates
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 03:34:17 +0000
(
03:34
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 03:34:17 +0000
(
03:34
+0000)
commitid.scad.pl
patch
|
blob
|
history
diff --git
a/commitid.scad.pl
b/commitid.scad.pl
index be58d4cd67ee8e5e1ef89a8db505b8ad4cbfba60..de1efa87586485c334880cd624607565d332ede4 100755
(executable)
--- a/
commitid.scad.pl
+++ b/
commitid.scad.pl
@@
-37,6
+37,7
@@
$SIG{__WARN__} = sub { die @_; };
# Tiny8:
# git rev-list --first-parent --count HEAD
# typically 3-4 characters but we allow for up to 6
+# padded with zeroes; if too long we reduce mod 10^n
# eg
# Tiny4 1070
#
@@
-47,10
+48,10
@@
$SIG{__WARN__} = sub { die @_; };
# Tiny4Q 10
# 70
#
-# Git4
-# Git6
-# Git8
-# git-rev-parse HEAD
+# Git4
Git4Q
+# Git6
Git6Q
+# Git8
Git8Q
+# git-rev-parse HEAD
(prefix of requested length)
# eg
# Git6 82f2a2