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

Merge remote-tracking branch 'origin/master' into libgit2

This commit is contained in:
Eelco Dolstra 2023-11-02 16:16:37 +01:00
commit 39ea46abb1
85 changed files with 971 additions and 576 deletions

View file

@ -402,12 +402,14 @@ struct GitInputAccessor : InputAccessor
return path.isRoot() ? true : (bool) lookup(path);
}
Stat lstat(const CanonPath & path) override
std::optional<Stat> maybeLstat(const CanonPath & path) override
{
if (path.isRoot())
return Stat { .type = tDirectory };
auto entry = need(path);
auto entry = lookup(path);
if (!entry)
return std::nullopt;
auto mode = git_tree_entry_filemode(entry);