Repositories / ocaml-git.git

ocaml-git.git

Clone (read-only): git clone http://git.guha-anderson.com/git/ocaml-git.git

Branch
.gitignoreblob
.gitmodulesblob
dune-projectblob
fixturestree
Makefileblob
ocaml-git.opamblob
README.mdblob
scriptstree
srctree
testtree
vendortree

README.md

# ocaml-git A small OCaml Git library backed by the C `libgit2` library. The public API is typed OCaml data for repositories, commits, branches, trees, blobs, status entries, and index operations. The implementation uses OCaml C stubs linked with `-lgit2`. ## Requirements - OCaml 5.4 or newer - opam - dune - system `libgit2` headers and shared library - system `git` for the fixture setup in tests - `tar` for the fixture tests ## Build ```sh opam install . --deps-only --with-test dune build ``` ## Test ```sh dune test ``` The test executable unpacks `fixtures/demo-repo.tar.gz` into `.build/test-work` and exercises repository discovery, HEAD, commits, tree lookup, branches, statuses, index operations, and repository initialization against that deterministic fixture.