Internal
internal/adapters/git
Package git inspects workspace state through Git-backed adapters.
import "github.com/nilstate/scafld/v2/internal/adapters/git"
Package git inspects workspace state through Git-backed adapters.
Types
type Adapter
Source: internal/adapters/git/git.go:21
Adapter reads Git state from a workspace root.
type Adapter struct {
Root string
}Fields
Root string
func ChangedFiles(ctx context.Context) ([]string, error)
Source: internal/adapters/git/git.go:63
ChangedFiles returns changed-file fingerprints for mutation guards.
func Status(ctx context.Context) (State, error)
Source: internal/adapters/git/git.go:26
Status returns the current changed-file fingerprints.
type State
Source: internal/adapters/git/git.go:16
State is the fingerprinted set of Git-visible workspace changes.
type State struct {
Changed []string
}Fields
Changed []string
