1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 12:10:59 +01:00
This commit is contained in:
Wouter den Breejen 2007-09-19 14:26:16 +00:00
parent f435abcdb6
commit 4c32f38047
13 changed files with 125 additions and 14 deletions

View file

@ -571,6 +571,17 @@ static void performOp(Source & from, Sink & to, unsigned int op)
break;
}
case wopGetSharedWith: {
Path statePath1 = readString(from);
Path statePath2;
startWork();
bool result = store->getSharedWith(statePath1, statePath2);
stopWork();
writeString(statePath2, to);
writeInt(result, to);
break;
}
case wopToNonSharedPathSet: {
PathSet statePaths = readStringSet(from);
startWork();