Dyrector Docs

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

SubcommandDescription
showOne entry's files, before and after
undoUndo an entry (default: your newest one still in effect)
restoreMake the files what they were right after an entry, a time, or 'start'
peekThe files at an entry, a time, or 'start' (read-only); with a path, that file
pinKeep an entry (and what it needs) when old history is trimmed
beginStart a turn: your writes until end become one entry under your name
lockLock 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
releaseLet your locks go in the Studio serving this project
endEnd your turn and print its entry

Run dyrector history <command> --help for subcommand options.

Options

OptionDescription
--dir=<dir>Project directory (default: current)
--jsonOutput 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.