Skip to main content
Version: Next

The five subcommands

CommandReadsWritesExit codes
snapshotthe upstream file, the working copy if it existsthe working copy (if absent), .cedit/0, 2
diffbase snapshot, working copynothing0, 2
syncbase snapshot, working copy, upstreamthe working copy, .cedit/0, 1, 2
statusbase snapshot, working copy, manifestnothing0, 1, 2
resolvemanifest, working copythe working copy (--take upstream only), .cedit/0, 2

diff and status are read-only and safe at any moment. sync is the only command that merges. resolve is the only command that can clear a conflict.

Alongside them sits cedit md — five stateless verbs that read no .cedit/ state and work on any Markdown file, tracked or not. They are not part of the workflow above; they are how you look at what the parser sees. The md verbs cover them.