Involved Source Files Package memvcs provides a pure in-memory, transactional vcs.VCS
implementation with zero disk or subprocess I/O.repo.gosession.go
Package-Level Type Names (total 4, in which 3 are exported)
Repo is a pure in-memory implementation of vcs.VCS. // commit ID -> CommitheadRefstringmusync.Mutexpushes[]PushRecord // ref -> commit IDrootstringseqint // tag -> commit ID 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) commitLocked(msg string, files map[string][]byte) string(*Repo) resolveIDLocked(rev string) (string, bool)
*Repo : go.pact.im/x/goship/internal/vcs.VCS
func New(initialFiles map[string][]byte) *Repo