mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
Optimisation
This commit is contained in:
parent
b9f60faab5
commit
33852ead6b
3 changed files with 16 additions and 25 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue