1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 21:46:01 +01:00

libfetchers/git: Move workdir accessor into GitRepo::getAccessor

This commit is contained in:
Robert Hensing 2023-12-11 22:28:53 +01:00
parent 8024b954d7
commit 7774eff10e
3 changed files with 26 additions and 4 deletions

View file

@ -1,5 +1,6 @@
#pragma once
#include "filtering-input-accessor.hh"
#include "input-accessor.hh"
namespace nix {
@ -73,6 +74,8 @@ struct GitRepo
virtual ref<InputAccessor> getAccessor(const Hash & rev, bool exportIgnore) = 0;
virtual ref<InputAccessor> getAccessor(const WorkdirInfo & wd, bool exportIgnore, MakeNotAllowedError makeNotAllowedError) = 0;
virtual void fetch(
const std::string & url,
const std::string & refspec,