Repository navigation
Initial public release of Cleft, a pure-C17 copy-on-write replacement for git worktree on macOS APFS and Linux XFS or Btrfs (with automatic fallback to Git on other filesystems).
Highlights
- Single stripped binary under 150 KiB with no third-party library dependencies.
- Subtree copy-on-write cloning on macOS APFS (
clonefileat) and file-level reflinks on Linux XFS/Btrfs (FICLONE). - In-process Git packfile, tree, and Index v2/v3/v4 reader and writer (defaults to prefix-compressed Index v4 with a
TREEcache-tree). - Atomic native worktree registration avoiding Git's concurrent
commondirrace under parallel spawns. - Metadata verification (
--verify=stat, default) and content-hash verification (--verify=hash). - Default-on
.cleftincludeand.worktreeincludesupport for Git-ignored caches, with--no-includeandcleft.autoIncludeopt-outs. - Includes man page, bash/zsh/fish completions, worktree hook scripts, and an optional Git PATH wrapper.
Install
- Homebrew:
brew tap arcadia-eng/cleft https://github.com/arcadia-eng/cleft && brew install cleft - Nix:
nix profile install github:arcadia-eng/cleft - Release binaries: Download the archive for your OS and CPU below and verify against
SHA256SUMS.
Documentation and benchmarks: https://cleft.arcadia.is