guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

04/05: swh: Make 'commit-id?' public.


From: guix-commits
Subject: 04/05: swh: Make 'commit-id?' public.
Date: Mon, 2 Sep 2019 09:25:25 -0400 (EDT)

civodul pushed a commit to branch master
in repository guix.

commit d370cc73193f42fb86f08237b4ebb612ef822ae7
Author: Ludovic Courtès <address@hidden>
Date:   Thu Aug 29 16:02:29 2019 +0200

    swh: Make 'commit-id?' public.
    
    * guix/swh.scm (commit-id?): Make public.
---
 guix/swh.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/guix/swh.scm b/guix/swh.scm
index 42f38ee..01648a1 100644
--- a/guix/swh.scm
+++ b/guix/swh.scm
@@ -105,6 +105,8 @@
             request-cooking
             vault-fetch
 
+            commit-id?
+
             swh-download))
 
 ;;; Commentary:
@@ -568,7 +570,7 @@ requested bundle cooking, waiting for completion...~%"))
 
 (define (commit-id? reference)
   "Return true if REFERENCE is likely a commit ID, false otherwise---e.g., if
-it is a tag name."
+it is a tag name.  This is based on a simple heuristic so use with care!"
   (and (= (string-length reference) 40)
        (string-every char-set:hex-digit reference)))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]