1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-29 05:31:00 +01:00

* A command `--list-generations' to show all generations for a

profile.
This commit is contained in:
Eelco Dolstra 2004-02-06 16:03:27 +00:00
parent 7c0fa4474f
commit 73ab2ed4fd
3 changed files with 80 additions and 9 deletions

View file

@ -6,6 +6,20 @@
#include "util.hh"
struct Generation
{
int number;
Path path;
time_t creationTime;
};
typedef list<Generation> Generations;
/* Returns the list of currently present generations for the specified
profile, sorted by generation number. */
Generations findGenerations(Path profile);
Path createGeneration(Path profile, Path outPath, Path drvPath);
void switchLink(Path link, Path target);