<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1bfcaf3bb04d4e3d52b6559252faa33b19779228">https://github.com/macports/macports-ports/commit/1bfcaf3bb04d4e3d52b6559252faa33b19779228</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 1bfcaf3  github-1.0.tcl: Reduce minimum commit hash length to 7 chars
</span>1bfcaf3 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 1bfcaf3bb04d4e3d52b6559252faa33b19779228
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Fri Mar 2 12:52:19 2018 -0600

<span style='display:block; white-space:pre;color:#404040;'>    github-1.0.tcl: Reduce minimum commit hash length to 7 chars
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    While it is still preferred to specify the full unabbreviated commit
</span><span style='display:block; white-space:pre;color:#404040;'>    hash, this reduces the minimum length of abbreviated commit hashes from
</span><span style='display:block; white-space:pre;color:#404040;'>    9 to 7 characters, since that is the length shown on GitHub.
</span>---
 _resources/port1.0/group/github-1.0.tcl | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/github-1.0.tcl b/_resources/port1.0/group/github-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index 10692fa..33f32b1 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/github-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/github-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -184,11 +184,13 @@ proc github.setup {gh_author gh_project gh_version {gh_tag_prefix ""}} {
</span>         }
     }
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # If the "version" is composed entirely of hex characters, and is at least
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # nine characters long, and no tag_prefix is provided, then assume we are
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # using a commit hash and livecheck commits; otherwise livecheck tags.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # If the version is composed entirely of hex characters, and is at least 7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # characters long, and is not exactly 8 decimal digits (which might be a
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # version in YYYYMMDD format), and no tag_prefix is provided, then assume we
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # are using a commit hash and livecheck commits; otherwise livecheck tags.
</span>     if {[join ${github.tag_prefix}] eq "" && \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        [regexp "^\[0-9a-f\]{9,}\$" ${github.version}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        [regexp "^\[0-9a-f\]{7,}\$" ${github.version}] && \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ![regexp "^\[0-9\]{8}\$" ${github.version}]} {
</span>         livecheck.type      regexm
         livecheck.url       ${github.homepage}/commits/master.atom
         livecheck.regex     <id>tag:github.com,2008:Grit::Commit/(\[0-9a-f\]{[string length ${github.version}]})\[0-9a-f\]*</id>
</pre><pre style='margin:0'>

</pre>