1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 21:51:50 +02:00

GitExportIgnoreSourceAccessor: Don't show «unknown»

In general we should set the path display prefix on the inner
accessor, so we now pass the display prefix to getAccessor().
This commit is contained in:
Eelco Dolstra 2025-01-30 12:41:02 +01:00
parent 102d90ebf0
commit 3032512425
5 changed files with 29 additions and 20 deletions

View file

@ -86,7 +86,10 @@ struct GitRepo
virtual bool hasObject(const Hash & oid) = 0;
virtual ref<SourceAccessor> getAccessor(const Hash & rev, bool exportIgnore) = 0;
virtual ref<SourceAccessor> getAccessor(
const Hash & rev,
bool exportIgnore,
std::string displayPrefix) = 0;
virtual ref<SourceAccessor> getAccessor(const WorkdirInfo & wd, bool exportIgnore, MakeNotAllowedError makeNotAllowedError) = 0;