You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+10-16Lines changed: 10 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,31 +7,25 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## [Unreleased]
9
9
10
-
### Added
11
-
-**Git-like branch support for `version`** — `version branch`, `version checkout`, `version tree`
12
-
-`version branch` — lists all branches with current marker and tip hash; creates a new branch when a name is given; `--from <hash>` to branch from a specific commit
13
-
-`version checkout <branch>` — switches HEAD to a symbolic ref pointing to the named branch; new commits advance only the checked-out branch tip
14
-
-`version tree` — ASCII commit graph showing all branches with lane columns, `HEAD -> branch` decoration, short hash, date, and message (newest-first)
15
-
- HEAD is now stored as a Git-style symbolic ref (`ref: refs/heads/main`) rather than a bare hash; branch tips live in `.deepdiffdb/refs/heads/<name>`
16
-
- New `internal/version` files: `branch.go`, `tree.go`
17
-
- 39 new unit tests covering store symbolic refs, branch lifecycle, and tree rendering (`tests/version/`)
18
-
19
-
## [1.5.0] - 2026-03-31
10
+
## [1.1.0] - 2026-04-01
20
11
21
12
### Added
22
13
-**Git-like versioning for DB diffs** (issue #16)
23
-
- New `version` command group: `init`, `commit`, `log`, `diff`, `rollback`
24
-
-`version init` — creates a `.deepdiffdb/` repository (objects store + HEAD pointer) in the current directory
25
-
-`version commit` — runs a full schema+data diff and stores the result as a SHA-256 content-addressable commit; records both schema snapshots so rollback SQL can be generated offline
14
+
- New `version` command group with 8 subcommands: `init`, `commit`, `log`, `diff`, `rollback`, `branch`, `checkout`, `tree`
15
+
-`version init` — creates a `.deepdiffdb/` repository; HEAD stored as a symbolic ref (`ref: refs/heads/main`); branch tips in `refs/heads/<name>`
16
+
-`version commit` — runs a full schema+data diff and stores the result as a SHA-256 content-addressable commit (zlib-compressed, Git fanout layout); records both schema snapshots for offline rollback generation
26
17
-`version log` — walks the commit chain from HEAD, showing author, date, and drift markers (`[schema drift]`, `[data changes]`)
27
18
-`version diff <hash1> <hash2>` — compares dev schema snapshots of two commits; reports added/removed tables and column/index changes
28
19
-`version rollback <hash>` — generates driver-aware rollback SQL by inverting the stored diff; inherits safety defaults from `schema-migrate` (destructive ops commented out); supports `--out <file>` and `--driver` overrides
29
-
- Commit objects stored as JSON in `.deepdiffdb/objects/<sha256>.json`
30
-
- New `internal/version` package (`model.go`, `store.go`, `rollback.go`)
20
+
-`version branch [<name>]` — lists all branches with current marker and tip hash; creates a new branch when a name is given; `--from <hash>` to branch from a specific commit
21
+
-`version checkout <branch>` — switches HEAD to a symbolic ref pointing to the named branch; new commits advance only the checked-out branch tip
22
+
-`version tree` — ASCII commit graph showing all branches with lane columns, `HEAD -> branch` decoration, short hash, date, and message (newest-first)
23
+
- New `internal/version` package: `model.go`, `store.go`, `rollback.go`, `branch.go`, `tree.go`
24
+
- 39 unit tests covering store symbolic refs, branch lifecycle, and tree rendering (`tests/version/`)
0 commit comments