Simon Tournier d007b64356
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
2024-07-23 16:27:27 +02:00
..
2024-04-15 22:36:42 +02:00
2024-05-19 16:05:00 +02:00
2024-01-24 23:28:38 +01:00