Project
dyrector history
List, undo and restore the project's recorded changes
Usage
Command usage
dyrector history [OPTIONS] show|undo|restore|peek|pin|begin|lock|release|end
Subcommands
| Subcommand | Description |
|---|---|
| show | One entry's files, before and after |
| undo | Undo an entry (default: your newest one still in effect) |
| restore | Make the files what they were right after an entry, a time, or 'start' |
| peek | The files at an entry, a time, or 'start' (read-only); with a path, that file |
| pin | Keep an entry (and what it needs) when old history is trimmed |
| begin | Start a turn: your writes until end become one entry under your name |
| lock | Lock files (file) or elements (file#id) in the Studio serving this project, so a person cannot change them while you work. The claim's lock token is kept for you outside the project: in $XDG_STATE_HOME/dyrector/lock-tokens when XDG_STATE_HOME is absolute, else ~/.local/state/dyrector/lock-tokens; on Windows in %LOCALAPPDATA%\dyrector\lock-tokens when LOCALAPPDATA is absolute, else ~\AppData\Local\dyrector\lock-tokens. A store inside the project, or with a link on its path, is refused. Windows checks only that its folders are plain folders with no links, not their ACLs: it must be a per-user folder only you can read |
| release | Let your locks go in the Studio serving this project |
| end | End your turn and print its entry |
Run dyrector history <command> --help for subcommand options.
Options
| Option | Description |
|---|---|
| --dir=<dir> | Project directory (default: current) |
| --json | Output as JSON: each entry's files as {path, before, after} (sha256, null for no file), its diff and timeRange (Default: false) |
| --since=<since> | Only entries after an entry id, a time, or 'mine' |
| --who=<who> | Your name, for --since mine |
| --limit=<limit> | Newest entries to show (default 20) |
Verbatim output of dyrector history --help
List, undo and restore the project's recorded changes (dyrector history v0.9.87)
USAGE dyrector history [OPTIONS] show|undo|restore|peek|pin|begin|lock|release|end
OPTIONS
--dir=<dir> Project directory (default: current)
--json Output as JSON: each entry's files as {path, before, after} (sha256, null for no file), its diff and timeRange (Default: false)
--since=<since> Only entries after an entry id, a time, or 'mine'
--who=<who> Your name, for --since mine
--limit=<limit> Newest entries to show (default 20)
COMMANDS
show One entry's files, before and after
undo Undo an entry (default: your newest one still in effect)
restore Make the files what they were right after an entry, a time, or 'start'
peek The files at an entry, a time, or 'start' (read-only); with a path, that file
pin Keep an entry (and what it needs) when old history is trimmed
begin Start a turn: your writes until `end` become one entry under your name
lock Lock files (file) or elements (file#id) in the Studio serving this project, so a person cannot change them while you work. The claim's lock token is kept for you outside the project: in $XDG_STATE_HOME/dyrector/lock-tokens when XDG_STATE_HOME is absolute, else ~/.local/state/dyrector/lock-tokens; on Windows in %LOCALAPPDATA%\dyrector\lock-tokens when LOCALAPPDATA is absolute, else ~\AppData\Local\dyrector\lock-tokens. A store inside the project, or with a link on its path, is refused. Windows checks only that its folders are plain folders with no links, not their ACLs: it must be a per-user folder only you can read
release Let your locks go in the Studio serving this project
end End your turn and print its entry
Use dyrector history <command> --help for more information about a command.