guix-play/guix/scripts
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
..
container
git git authenticate: Install pre-push and post-checkout hooks. 2024-05-01 17:26:19 +02:00
home
import import: go: Fix indentation in help message. 2024-07-01 21:57:13 +01:00
system reconfigure: /run/current-system points to generation. 2024-04-08 00:05:48 +02:00
archive.scm
authenticate.scm
build.scm guix build: Take ‘--system’ into account together with ‘-S’. 2024-07-18 17:31:18 +02:00
challenge.scm
container.scm
copy.scm
deploy.scm
describe.scm guix: Delay loading of (gnutls). 2024-04-15 22:36:42 +02:00
discover.scm
download.scm guix: download: Add support for git repositories. 2024-01-22 10:02:28 -05:00
edit.scm
environment.scm environment: Fix type error with ‘-C’ when ‘getpwuid’ fails. 2024-05-25 15:10:11 +02:00
gc.scm
git.scm
graph.scm
hash.scm scripts: hash: Handle repository with different VCS folders. 2024-07-23 16:27:27 +02:00
home.scm
import.scm import: Add binary npm importer. 2024-05-19 16:05:00 +02:00
install.scm
lint.scm
locate.scm
offload.scm gnu: open-ssh-session: Don’t require public key. 2024-04-07 19:43:07 +01:00
pack.scm pack: Create /tmp in Apptainer images. 2024-07-10 16:00:36 +02:00
package.scm
perform-download.scm download: Honor ‘GUIX_DOWNLOAD_METHODS’ environment variable. 2024-03-09 18:55:50 +01:00
processes.scm
publish.scm publish: Catch all compression errors. 2024-04-28 23:19:40 +02:00
pull.scm
refresh.scm
remove.scm
repl.scm
search.scm
shell.scm
show.scm
size.scm scripts: size: Fix guix size with --system argument. 2024-01-12 17:26:31 +01:00
style.scm style: Fix conversion of ‘unquote-splicing’ by ‘-S arguments’. 2024-06-03 22:58:52 +02:00
substitute.scm substitute: Don’t keep cache entries more than a few days. 2024-06-13 11:38:24 +02:00
system.scm file-systems: Add support for mounting CIFS file systems 2024-06-04 12:08:34 +02:00
time-machine.scm time-machine: Allow time travels to v0.16.0. 2024-03-11 22:12:34 +01:00
upgrade.scm
weather.scm weather: Add ‘-e’. 2024-01-24 23:28:38 +01:00