Repository navigation
Commit 555b40d
feat: add the change workflow
The local command line on the change model. `origin init` creates the
repository with the node's key (in ~/.config/origin or
$ORIGIN_CONFIG_DIR), a signed `policy` target naming the node authority of
`policy` and `main`, an empty `main`, and a first change.
There is no commit: the working copy is always a revision of the current
change, and every command that reads it snapshots it, with the stat cache
and parallel snapshots, writing the new objects in one durable batch.
`new`, `describe`, `edit`, `status`, `diff`, `show`, `log`, `evolog`,
`abandon` (a core.abandon statement), `converge` and `index rebuild` work
on changes, named by unique id prefixes. Divergence, detected by the
index, shows in `status`, `log` and `show`.
Benchmarks: divan snapshot benchmarks, and `just bench-git` timing origin
against git with hyperfine, `origin new` standing in for a commit.
A closed output pipe, as in `origin log | head`, ends a command quietly
instead of panicking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 194fe41 commit 555b40d
27 files changed
Lines changed: 3724 additions & 22 deletions
File tree
- .cargo
- apps/origin-src
- benches
- src
- tests
- docs
- tools/xtask
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 | | |
27 | 38 | | |
28 | 39 | | |
| |||
0 commit comments