diff --git a/guix/git-download.scm b/guix/git-download.scm
index 81d1d4fbf6f3ee3643a06caf3063dade1d62c6c3..fca44f552a878529a1907f9871dc5497676a1bd2 100644
--- a/guix/git-download.scm
+++ b/guix/git-download.scm
@@ -30,7 +30,9 @@ (define-module (guix git-download)
             git-reference-commit
             git-reference-recursive?
 
-            git-fetch))
+            git-fetch
+            git-version
+            git-file-name))
 
 ;;; Commentary:
 ;;;
@@ -110,4 +112,12 @@ (define build
                       #:guile-for-build guile
                       #:local-build? #t)))
 
+(define (git-version version revision commit)
+  "Return the version string for packages using git-download."
+  (string-append version "-" revision "." (string-take commit 7)))
+
+(define (git-file-name name version)
+  "Return the file-name for packages using git-download."
+  (string-append name "-" version "-checkout"))
+
 ;;; git-download.scm ends here