diff options
author | Simon Tournier <[email protected]> | 2023-12-02 14:11:20 +0100 |
---|---|---|
committer | Simon Tournier <[email protected]> | 2024-07-23 16:27:27 +0200 |
commit | d007b64356764f49677c78d82643f1125b5353b7 (patch) | |
tree | 8fc35b2d491cd8a4fbae12890947a7f213d040c1 /gnu/packages/backup.scm | |
parent | ffdcef5f36196f5e004ca6cb96f5accc0c73fc92 (diff) |
scripts: hash: Handle repository with different VCS folders.
Fixes <https://issues.guix.gnu.org/issue/65979>.
* guix/hash.scm (%vcs-directories): New variable.
(vcs-file?): Add optional argument for passing VCS kind of the
file/repository.
(file-hash*): Adjust accordingly.
(vcs-file-predicate): New procedure and export it.
* guix/scripts/hash.scm (guix-hash)[file-hash]: Use it.
Change-Id: I8e286c3426ddefd664dc3a471d5a09e309824faa
Diffstat (limited to 'gnu/packages/backup.scm')
0 files changed, 0 insertions, 0 deletions