1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Implement shallow fetching

This commit is contained in:
Eelco Dolstra 2023-11-15 14:43:30 +01:00
parent 5dd4ae8687
commit 7ab91e7238
3 changed files with 31 additions and 24 deletions

View file

@ -75,7 +75,8 @@ struct GitRepo
virtual void fetch(
const std::string & url,
const std::string & refspec) = 0;
const std::string & refspec,
bool shallow) = 0;
/**
* Verify that commit `rev` is signed by one of the keys in