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:
parent
7c0fa4474f
commit
73ab2ed4fd
3 changed files with 80 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue