Document stable and unstable library APIs · Entire

Document stable and unstable library APIs

0d2e56cmain·

Soph·3mo ago·2 files·+37 added/-1 removed

Sessions

ff6143165562View transcript

Changes

2

59 unmodified lines

Library API

git-sync now has a two-tier Go API:

If you are embedding git-sync outside this repo, prefer pkg/gitsync. The CLI and benchmark command use pkg/gitsync/unstable because they still need direct access to advanced engine controls that are intentionally not part of the stable API.

Current scope

Architecture

git-sync is a remote-to-remote Git mirroring CLI over smart HTTP. git-sync is a remote-to-remote Git mirroring tool and library over smart HTTP.

Product Rationale

Package Model

Public API Boundary

The project now separates embedding concerns from first-party tooling concerns:

That split is intentional:

Protocol Boundaries