vcs

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 9, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(logger *zap.Logger, viewProvider provider.ViewProvider, codebaseID, viewID, snapshotCommitID, parentSnapshotCommitID string) ([]unidiff.FileDiff, error)

func Restore

func Restore(logger *zap.Logger, viewProvider provider.ViewProvider, codebaseID, workspaceID, viewID, snapshotID, snapshotCommitID string) error

func RestoreRepo

func RestoreRepo(logger *zap.Logger, repo vcs.RepoWriter, codebaseID, workspaceID, snapshotID, snapshotCommitID string) error

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL