package gitvcs

Import Path
	go.pact.im/x/goship/internal/vcs/gitvcs (on go.dev)

Dependency Relation
	imports 12 packages, and imported by 2 packages

Involved Source Files Package gitvcs implements the vcs.VCS interface using the git CLI with isolated temporary worktrees and atomic ref updates. repo.go session.go
Package-Level Type Names (total 4, in which 2 are exported)
/* sort exporteds by: | */
Config holds Git-specific options decoded from goship.json’s "vcs" object. Annotated creates annotated tags when true (default true) or lightweight tags when false. Program overrides the git executable name or path passed to exec.LookPath (default "git"). Sign forces GPG/SSH signing when true, disables it when false, or respects native git config (commit.gpgSign / tag.gpgSign) when nil. func Open(ctx context.Context, dir string, cfg Config) (vcs.VCS, error) func Opener(cfg Config) vcs.Opener
Repo implements vcs.VCS for a Git repository. Begin starts an isolated release session using a temporary detached git worktree. ChangedFiles returns repo-relative slash paths changed between baseRev and targetRev under dir. Export extracts the tracked tree at rev into destDir using a single "git archive" invocation. ListFiles returns all tracked blob files at rev under dir. Name returns "git". Push pushes the branch (if non-empty) and tags to remote in a single command. PushHint formats a git push command for res. ReadFile returns the contents of slashPath at rev. ResolveRev resolves rev ("" defaults to HEAD) to a commit SHA and optional branch. Root returns the absolute path to the repository root. Tags returns all tags in the repository. *Repo : go.pact.im/x/goship/internal/vcs.Exporter *Repo : go.pact.im/x/goship/internal/vcs.VCS
Package-Level Functions (total 5, in which 2 are exported)
Open locates the Git repository containing dir.
Opener returns a vcs.Opener for the Git backend using cfg.
Package-Level Constants (total 5, in which 1 is exported)
Name is the backend identifier for Git.