Documentation
¶
Index ¶
- func Diff(logger *zap.Logger, viewProvider provider.ViewProvider, ...) ([]unidiff.FileDiff, error)
- func Restore(logger *zap.Logger, viewProvider provider.ViewProvider, ...) error
- func RestoreRepo(logger *zap.Logger, repo vcs.RepoWriter, ...) error
- func SnapshotOnExistingCommit(repo vcs.RepoGitWriter, snapshotID, existingCommitID string) (string, error)
- func SnapshotOnTrunk(repo vcs.RepoGitWriter, workspaceID, snapshotID string, opts ...SnapshotOption) (string, error)
- func SnapshotOnViewRepo(logger *zap.Logger, repo vcs.RepoReaderGitWriter, ...) (string, error)
- type SnapshotOption
- type SnapshotOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RestoreRepo ¶
func SnapshotOnExistingCommit ¶
func SnapshotOnExistingCommit(repo vcs.RepoGitWriter, snapshotID, existingCommitID string) (string, error)
func SnapshotOnTrunk ¶
func SnapshotOnTrunk(repo vcs.RepoGitWriter, workspaceID, snapshotID string, opts ...SnapshotOption) (string, error)
func SnapshotOnViewRepo ¶
func SnapshotOnViewRepo(logger *zap.Logger, repo vcs.RepoReaderGitWriter, codebaseID, snapshotID string, opts ...SnapshotOption) (string, error)
Types ¶
type SnapshotOption ¶
type SnapshotOption func(*SnapshotOptions)
func WithPatchIDsFilter ¶
func WithPatchIDsFilter(patchIDs []string) SnapshotOption
func WithRevertCommitID ¶
func WithRevertCommitID(commitID string) SnapshotOption
type SnapshotOptions ¶
type SnapshotOptions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.