mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Input::hasAllInfo(): Remove
This commit is contained in:
parent
4d17c59d8d
commit
af302267e5
8 changed files with 1 additions and 56 deletions
|
@ -321,15 +321,6 @@ struct GitInputScheme : InputScheme
|
|||
return url;
|
||||
}
|
||||
|
||||
bool hasAllInfo(const Input & input) const override
|
||||
{
|
||||
bool maybeDirty = !input.getRef();
|
||||
bool shallow = maybeGetBoolAttr(input.attrs, "shallow").value_or(false);
|
||||
return
|
||||
maybeGetIntAttr(input.attrs, "lastModified")
|
||||
&& (shallow || maybeDirty || maybeGetIntAttr(input.attrs, "revCount"));
|
||||
}
|
||||
|
||||
Input applyOverrides(
|
||||
const Input & input,
|
||||
std::optional<std::string> ref,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue