diff options
author | Matthew O'Gorman <mog@rldn.net> | 2016-01-06 20:15:19 -0500 |
---|---|---|
committer | Matthew O'Gorman <mog@rldn.net> | 2018-03-01 21:47:57 -0500 |
commit | 429154b74c7f4b4d679ae79bbc939049f537bfaf (patch) | |
tree | 8f393c37c7138cf16a23c2e364b9f5f0bcd765a1 /src/libstore/profiles.hh | |
parent | 4a000cbb39766812fccebfa7cf8b76ecca8f6e63 (diff) |
Implement --delete-generations + flag for keeping last N number of generations
Diffstat (limited to 'src/libstore/profiles.hh')
-rw-r--r-- | src/libstore/profiles.hh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libstore/profiles.hh b/src/libstore/profiles.hh index 1d4e6d303..3cad08dc5 100644 --- a/src/libstore/profiles.hh +++ b/src/libstore/profiles.hh @@ -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); |