Veins exists because Git has three properties that are painful for the primary use case (a solo developer working on large projects, some of which commit large generated files that are regenerated many times):
Cloning repositories with many large, similar revisions is slow because pack files do not store object IDs for deltified objects. A client must reconstruct each object by walking its delta chain and then hash it (“Resolving deltas”).
Merges can leave the repository or working tree in a half-finished state, and conflicts are expressed by inserting <<<<<<< markers into the files themselves.
Rolling back arbitrary operations (rebases, merges, resets) is unreliable and relies on the reflog.
Goals of the project include:
Fast clone and checkout for histories with many large, similar revisions. No step of clone or checkout may scale with delta-chain length.
Seamless rollback. Every state-changing command is recorded as an operation, and any operation can be undone or restored.
Seamless merges. A merge never fails and never blocks. Conflicts are values stored in history, not text inserted into files.
Lossless git interoperability. History can be imported from git, exported to git, and round-tripped with identical git object IDs. A user can leave veins for git at any time without losing commit history.
Remote sharing through a native fetch/push protocol with lazy chunk fetching.
Controlled sharing. A server grants identified keys read-only or read-write access to a repository, and can optionally serve a repository to anonymous readers. Read-only access is a core v1 feature.
Corruption resistance. Silent data loss is treated as a worse failure than a crash.
The source code, which is already self hosted with Veins itself, can be found here: https://veinsforge.top/navid/veins
Top comments (0)