+2
doc/release-notes/rl-2511.section.md
+2
doc/release-notes/rl-2511.section.md
···- `fetchgit`: Add `rootDir` argument to limit the resulting source to one subdirectory of the whole Git repository. Corresponding `--root-dir` option added to `nix-prefetch-git`.+- `nix-prefetch-git`: Added a `--no-add-path` argument to disable adding the path to the store; this is useful when working with a [read-only store](https://nix.dev/manual/nix/2.28/command-ref/new-cli/nix3-help-stores#store-experimental-local-overlay-store-read-only).- `sftpman` has been updated to version 2, a rewrite in Rust which is mostly backward compatible but does include some changes to the CLI.For more information, [check the project's README](https://github.com/spantaleev/sftpman-rs#is-sftpman-v2-compatible-with-sftpman-v1).
+10
-1
pkgs/build-support/fetchgit/nix-prefetch-git
+10
-1
pkgs/build-support/fetchgit/nix-prefetch-git
···--root-dir dir Directory in the repository that will be copied to the output instead of the full repository.······
+90
-1
pkgs/build-support/fetchgit/tests.nix
+90
-1
pkgs/build-support/fetchgit/tests.nix
······+# Make sure that if an expected hash is given and the corresponding store path exists already, no fetch is done+prefetch() { NIX_REMOTE="local?root=$store_root" nix-prefetch-git $@ "$url" --rev "$rev" | jq -r .path; }