Skip to main content

Module git

Module git 

Source
Expand description

Git repository operations.

Ported from internal/backends/git/{interface,client,errors}.go. state.rs carries the rest of Client’s methods (ported from state.go), split the same way the Go package splits client.go/state.go.

Modules§

state
Repository state detection helpers.

Structs§

Client
Ported from Client in client.go.
RepositoryState
Ported from RepositoryState in interface.go.
Status
Ported from Status in interface.go.

Enums§

GitError
Ported from errors.go’s sentinel errors, plus the exec-layer error this crate’s Client methods wrap. Go’s %w wrapping of a sentinel alongside arbitrary formatted context becomes an explicit enum variant per call site; see individual Client methods in Phase 4.

Traits§

Backend
Ported from the Backend interface in interface.go.