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

Optimisation

This commit is contained in:
Eelco Dolstra 2024-12-04 15:31:19 +01:00
parent b9f60faab5
commit 33852ead6b
3 changed files with 16 additions and 25 deletions

View file

@ -55,11 +55,12 @@ struct GitRepo
in the repo yet. */
std::optional<Hash> headRev;
enum State { Clean, Dirty };
/* All files in the working directory that are unchanged,
modified or added, but excluding deleted files. */
std::map<CanonPath, State> files;
std::set<CanonPath> files;
/* All modified or added files. */
std::set<CanonPath> dirtyFiles;
/* The deleted files. */
std::set<CanonPath> deletedFiles;