diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-10-30T18·57+0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-10-30T18·59+0100 |
commit | 72cd52c3cdd1fc465fade6d553b3823aca9f8b6e (patch) | |
tree | 403a3d512f405a98cf304e1568dadb13f4c79e0b /src/libutil/archive.hh | |
parent | 197922ea4e76ec9439d487e2d16411495a71df4e (diff) |
builtins.fetchgit: Support importing a working tree
For example, you can write src = fetchgit ./.; and if ./. refers to an unclean working tree, that tree will be copied to the Nix store. This removes the need for "cleanSource".
Diffstat (limited to 'src/libutil/archive.hh')
-rw-r--r-- | src/libutil/archive.hh | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index 607ebf8b28f9..8a15e849c7b8 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -44,13 +44,6 @@ namespace nix { `+' denotes string concatenation. */ -struct PathFilter -{ - virtual ~PathFilter() { } - virtual bool operator () (const Path & path) { return true; } -}; - -extern PathFilter defaultPathFilter; void dumpPath(const Path & path, Sink & sink, PathFilter & filter = defaultPathFilter); |