mirror of
https://github.com/NixOS/nix.git
synced 2025-11-26 04:00:59 +01:00
Implemented runtime --share= and --unshare options. Fixed some things.
This commit is contained in:
parent
86f0fd8341
commit
d0458acb7c
14 changed files with 90 additions and 54 deletions
|
|
@ -615,9 +615,10 @@ static void performOp(Source & from, Sink & to, unsigned int op)
|
|||
|
||||
case wopUnShareState: {
|
||||
Path path = readString(from);
|
||||
bool copyFromOld = readInt(from) == 1;
|
||||
bool branch = readInt(from) == 1;
|
||||
bool restoreOld = readInt(from) == 1;
|
||||
startWork();
|
||||
store->unShareState(path, copyFromOld);
|
||||
store->unShareState(path, branch, restoreOld);
|
||||
stopWork();
|
||||
writeInt(1, to);
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue