package memvcs

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

Dependency Relation
	imports 11 packages, and imported by 0 packages

Involved Source Files Package memvcs provides a pure in-memory, transactional vcs.VCS implementation with zero disk or subprocess I/O. repo.go session.go
Package-Level Type Names (total 4, in which 3 are exported)
/* sort exporteds by: | */
Commit represents an immutable revision stored in a memvcs Repo. Files map[string][]byte ID string Message string Parent string
PushRecord records a Push call made against a memvcs Repo. Ref string Remote string Tags []string func (*Repo).Pushes() []PushRecord
Repo is a pure in-memory implementation of vcs.VCS. AddTag creates a tag pointing at rev (or current head if empty). Begin starts an isolated in-memory transaction rooted at rev. ChangedFiles returns repo-relative slash paths whose contents differ between baseRev and targetRev under dir. CommitFiles adds a new commit on the current branch (useful in tests). ListFiles returns all tracked files at rev under dir. Name returns "mem". Push records a push operation in memory. PushHint returns a descriptive hint for memvcs. Pushes returns a copy of all Push calls recorded by this Repo. ReadFile reads slashPath at rev. ResolveRev resolves rev (empty resolves the current branch). Root returns the synthetic root path "/mem". Tags returns all tags in sorted order. *Repo : go.pact.im/x/goship/internal/vcs.VCS func New(initialFiles map[string][]byte) *Repo
Package-Level Functions (total 5, in which 1 is exported)
New creates an in-memory Repo initialized with a single commit on branch "main" containing initialFiles (repo-relative slash paths).
Package-Level Constants (only one, which is exported)
Name is the backend identifier for the in-memory VCS.