diff options
author | Romain GARBAGE <romain.garbage@inria.fr> | 2024-01-22 11:32:55 +0100 |
---|---|---|
committer | Maxim Cournoyer <maxim.cournoyer@gmail.com> | 2024-01-22 10:02:28 -0500 |
commit | 916fb5347ab8d441e92ec6bfb13f9e9fef524ff7 (patch) | |
tree | ab7c980809ece44906aa70426012facae110449b /gnu/home | |
parent | 1bdeec5d66cfeea3a5fc5d69690dd32cb32ee104 (diff) | |
download | guix-916fb5347ab8d441e92ec6bfb13f9e9fef524ff7.tar.gz guix-916fb5347ab8d441e92ec6bfb13f9e9fef524ff7.zip |
guix: download: Add support for git repositories.
* guix/scripts/download.scm (git-download-to-store*): Add new variable.
(copy-recursively-without-dot-git): New variable.
(git-download-to-file): Add new variable.
(show-help): Add 'git', 'commit', 'branch' and 'recursive'options
help message.
(%default-options): Add default value for 'git-reference' and
'recursive' options.
(%options): Add 'git', 'commit', 'branch' and 'recursive' command
line options.
(guix-download) [hash]: Compute hash with 'file-hash*' instead of
'port-hash' from (gcrypt hash) module. This allows us to compute
hashes for directories.
* doc/guix.texi (Invoking guix-download): Add @item entries for
`git', `commit', `branch' and `recursive' options. Add a paragraph in
the introduction.
* tests/guix-download.sh: New tests. Move variables and trap definition
to the top of the file.
Change-Id: Ic2c428dca4cfcb0d4714ed361a4c46609339140a
Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
Diffstat (limited to 'gnu/home')
0 files changed, 0 insertions, 0 deletions