mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 13:11:00 +01:00
Implement --delete-generations + flag for keeping last N number of generations
This commit is contained in:
parent
4a000cbb39
commit
429154b74c
4 changed files with 32 additions and 2 deletions
|
|
@ -39,6 +39,8 @@ void deleteGeneration(const Path & profile, unsigned int gen);
|
|||
|
||||
void deleteGenerations(const Path & profile, const std::set<unsigned int> & gensToDelete, bool dryRun);
|
||||
|
||||
void deleteGenerationsGreaterThan(const Path & profile, const string & max, bool dryRun);
|
||||
|
||||
void deleteOldGenerations(const Path & profile, bool dryRun);
|
||||
|
||||
void deleteGenerationsOlderThan(const Path & profile, time_t t, bool dryRun);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue