Involved Source Files Package gitvcs implements the vcs.VCS interface using the git CLI with
isolated temporary worktrees and atomic ref updates.repo.gosession.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.( Config) isAnnotated() bool
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.cfgConfigprogramstringrootstring 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) defaultTagSign(ctx context.Context) bool
*Repo : go.pact.im/x/goship/internal/vcs.Exporter
*Repo : go.pact.im/x/goship/internal/vcs.VCS