mirror of
https://github.com/NixOS/nix
synced 2025-07-03 02:01:48 +02:00
logs around getFingerprint
This commit is contained in:
parent
b69fb151c4
commit
9a6388dce6
3 changed files with 18 additions and 5 deletions
|
@ -642,6 +642,7 @@ struct GitInputScheme : InputScheme
|
|||
|
||||
bool exportIgnore = getExportIgnoreAttr(input);
|
||||
bool smudgeLfs = getLfsAttr(input);
|
||||
std::cerr << "smudgeLfs: " << smudgeLfs << std::endl;
|
||||
auto accessor = repo->getAccessor(rev, exportIgnore, smudgeLfs);
|
||||
|
||||
accessor->setPathDisplay("«" + input.to_string() + "»");
|
||||
|
@ -803,7 +804,11 @@ struct GitInputScheme : InputScheme
|
|||
std::optional<std::string> getFingerprint(ref<Store> store, const Input & input) const override
|
||||
{
|
||||
if (auto rev = input.getRev())
|
||||
return rev->gitRev() + (getSubmodulesAttr(input) ? ";s" : "") + (getExportIgnoreAttr(input) ? ";e" : "") + (getLfsAttr(input) ? ";l" : "");
|
||||
{
|
||||
const auto s = rev->gitRev() + (getSubmodulesAttr(input) ? ";s" : "") + (getExportIgnoreAttr(input) ? ";e" : "") + (getLfsAttr(input) ? ";l" : "");
|
||||
std::cerr << "getFingerprint: " << s << std::endl;
|
||||
return s;
|
||||
}
|
||||
else
|
||||
return std::nullopt;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue