nix-super/src/libstore
Eelco Dolstra d1165d8791
Require shallow clones to be requested explicitly
If you do a fetchTree on a Git repository, whether the result contains
a revCount attribute should not depend on whether that repository
happens to be a shallow clone or not. That would complicate caching a
lot and would be semantically messy. So applying fetchTree/fetchGit to
a shallow repository is now an error unless you pass the attribute
'shallow = true'. If 'shallow = true', we don't return revCount, even
if the repository is not actually shallow.

Note that Nix itself is not doing shallow clones at the moment. But it
could do so as an optimisation if the user specifies 'shallow = true'.

Issue #2988.
2020-03-17 22:35:29 +01:00
..
builtins Merge remote-tracking branch 'origin/master' into flakes 2019-12-11 14:53:30 +01:00
fetchers Require shallow clones to be requested explicitly 2020-03-17 22:35:29 +01:00
binary-cache-store.cc pathInfoCache: Respect disk cache TTLs #3398 2020-03-12 10:30:28 +01:00
binary-cache-store.hh Add priority setting to stores 2019-12-17 17:17:53 +01:00
build.cc Add convenience overload for toRealPath() 2020-02-02 12:28:56 +01:00
builtins.hh Merge remote-tracking branch 'origin/master' into flakes 2019-12-04 00:31:09 +01:00
crypto.cc binary-cache-public-keys -> trusted-public-keys 2017-11-20 17:32:34 +01:00
crypto.hh Revert "Get rid of unicode quotes (#1140)" 2016-11-26 00:38:01 +01:00
daemon.cc nix-store -r: Handle symlinks to store paths 2019-12-16 19:11:47 +01:00
daemon.hh Recursive Nix support 2019-11-06 00:52:38 +01:00
derivations.cc Merge remote-tracking branch 'origin/master' into flakes 2020-03-04 13:58:42 +01:00
derivations.hh nix eval-hydra-jobs: Support job names as aggregate constituents 2020-02-17 15:53:59 +01:00
download.cc Merge remote-tracking branch 'origin/master' into flakes 2020-02-05 15:41:51 +01:00
download.hh Merge remote-tracking branch 'origin/master' into flakes 2019-11-07 11:44:02 +01:00
export-import.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
fs-accessor.hh Shut up some warnings 2019-09-22 21:57:05 +02:00
gc.cc Fix GC failures on bad store path names 2020-02-28 18:07:10 +01:00
globals.cc unbreak build without pch 2020-01-13 21:45:33 +01:00
globals.hh Pluggable fetchers 2020-01-21 22:56:04 +01:00
http-binary-cache-store.cc Merge remote-tracking branch 'origin/master' into flakes 2019-12-18 14:25:25 +01:00
legacy-ssh-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
local-binary-cache-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
local-fs-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
local-store.cc Merge remote-tracking branch 'origin/master' into flakes 2020-03-13 17:03:30 +01:00
local-store.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
local.mk Install headers in the correct location 2020-02-03 18:04:09 +01:00
machines.cc getMachines(): Cache result 2019-04-01 21:09:35 +02:00
machines.hh Replace $NIX_REMOTE_SYSTEMS with an option "builder-files" 2017-05-02 15:46:09 +02:00
misc.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nar-accessor.cc Provide random access to cached NARs 2017-12-07 01:07:07 +01:00
nar-accessor.hh Fix build on gcc 7 2017-12-16 00:49:31 +01:00
nar-info-disk-cache.cc Merge remote-tracking branch 'origin/master' into flakes 2019-12-18 14:25:25 +01:00
nar-info-disk-cache.hh Merge remote-tracking branch 'origin/master' into flakes 2019-12-18 14:25:25 +01:00
nar-info.cc Fix derivation computation with __structuredAttrs and multiple outputs 2020-01-21 21:14:13 +01:00
nar-info.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-store.pc.in pkg-config files: Use c++17 2019-03-14 14:11:12 +01:00
optimise-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
parsed-derivations.cc Merge remote-tracking branch 'origin/master' into flakes 2019-12-11 14:53:30 +01:00
parsed-derivations.hh Merge remote-tracking branch 'origin/master' into flakes 2019-12-11 14:53:30 +01:00
path.cc nix-build: Fix !<output> handling 2020-03-04 13:56:17 +01:00
path.hh Prevent uninitialized StorePath creation 2020-02-13 16:12:16 +01:00
pathlocks.cc pathlocks: add include to fcntl.h for O_CLOEXEC 2019-08-07 07:41:22 -05:00
pathlocks.hh Use BSD instead of POSIX file locks 2019-08-02 18:39:16 +02:00
profiles.cc Merge remote-tracking branch 'origin/master' into flakes 2019-12-11 14:53:30 +01:00
profiles.hh Add getDefaultProfile() function 2019-10-21 16:07:19 +02:00
references.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
references.hh Allow content-addressable paths to have references 2019-10-21 17:47:24 +02:00
remote-fs-accessor.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
remote-fs-accessor.hh Provide random access to cached NARs 2017-12-07 01:07:07 +01:00
remote-store.cc Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
remote-store.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
s3-binary-cache-store.cc Add priority setting to stores 2019-12-17 17:17:53 +01:00
s3-binary-cache-store.hh Fix getS3Stats() 2016-10-06 17:00:52 +02:00
s3.hh s3: make scheme configurable 2018-12-07 23:55:38 +01:00
sandbox-defaults.sb Remove extraneous comment 2017-11-08 16:17:32 +01:00
sandbox-minimal.sb Always use the Darwin sandbox 2017-06-06 18:44:49 +02:00
sandbox-network.sb OS X sandbox: Improve builtin sandbox profile 2017-05-31 17:25:51 +02:00
schema.sql Mark content-addressed paths in the Nix database and in .narinfo 2016-08-10 18:05:35 +02:00
serve-protocol.hh Make adding paths via nix-store --serve run in constant memory 2018-08-03 21:21:16 +02:00
sqlite.cc Add flake evaluation cache 2019-06-07 22:25:48 +02:00
sqlite.hh Merge remote-tracking branch 'origin/master' into flakes 2019-12-18 14:25:25 +01:00
ssh-store.cc Fix segfault in gcc on i686-linux 2020-02-07 13:01:48 +01:00
ssh.cc Fix PR_SET_PDEATHSIG results in Broken pipe (#2395) 2020-02-14 07:51:44 +01:00
ssh.hh SSHMaster: Bypass SSH when connecting to localhost 2018-08-03 21:20:38 +02:00
store-api.cc Merge remote-tracking branch 'origin/master' into flakes 2020-03-13 17:03:30 +01:00
store-api.hh Merge remote-tracking branch 'origin/master' into flakes 2020-03-13 17:03:30 +01:00
worker-protocol.hh Make the Store API more type-safe 2019-12-10 22:06:05 +01:00