Request an invite
Docs menu

osmates workspace diff

Take what the guest changed in the machine's workspace as a git patch and a report.

Usage
osmates workspace diff <machine> [--output <output>] [--json]

The patch applies with git apply to the folder as it was pushed; the report beside it, a .json of the same name, lists every change, the files that can run something on the Mac once applied (hooks, agent settings, CI, build scripts and toolchains, editor tasks), links, executables, what was left out and why, and names that are one file on the Mac's volumes. Diffs are against the push, so a later one holds an earlier one's changes too. OSMates applies nothing. A machine kept with its workspace after its stop starts without a window for it, and an ephemeral one is deleted after.

Arguments

<machine>Required

The machine's name or identifier.

--output <output>

Where the patch goes. Default: <machine>-<time>.patch in the current folder.

--json

Print machine-readable JSON.

JSON output

With --json, it prints an object with these fields.

JSON Schema: /schemas/0/cli/workspace/diff.json

patchBytesintegerRequired

At least 0.

patchPathstringRequired
reportobjectRequired
report.addedintegerRequired
report.collisionsarray of objectsRequired
report.deletedintegerRequired
report.executablesarray of stringsRequired
report.filesarray of objectsRequired
report.leftOutarray of objectsRequired
report.linksarray of objectsRequired
report.modifiedintegerRequired
report.returnPathsarray of objectsRequired
report.scannedintegerRequired
reportPathstringRequired

Fields nested deeper are in the schema.

Exit statuses

Its exit status is one of these.

StatusMeaning
0The command did what it was asked.
1The command failed; with --json, standard error's last line is the error object.
64The command line is wrong, as ArgumentParser found before the command ran.
65What was given is wrong, found while the command ran; the same command fails until it changes.
75The same command can work later with nothing changed, as while an update finishes.
130Control-C cancelled what the command started.

Report a problem with this page