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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddToGitignore

func AddToGitignore(executorProvider executor.Provider, codebaseID, viewID, ignorePath string) error

func CreateAndLandFromView

func CreateAndLandFromView(
	viewRepo vcs.RepoWriter,
	logger *zap.Logger,
	codebaseID,
	workspaceID string,
	patchIDs []string,
	message string,
	signature git.Signature,
	diffOpts ...vcs.DiffOption,
) (string, func(vcs.RepoGitWriter) error, error)

func CreateChangeFromPatchesOnRepo

func CreateChangeFromPatchesOnRepo(logger *zap.Logger, r vcs.RepoReaderGitWriter, codebaseID string, patchIDs []string, message string, signature git.Signature, diffOpts ...vcs.DiffOption) (string, error)

func CreateChangesTreeFromPatches

func CreateChangesTreeFromPatches(logger *zap.Logger, r vcs.RepoReaderGitWriter, codebaseID string, patchIDs []string, diffOpts ...vcs.DiffOption) (*git.Oid, error)

CreateChangesTreeFromPatches creates a git-tree based on the inputs. If patchIDs is non-nil, the slice will be passed as a filter to unidiff.WithHunksFilter

func GetDiffs

func GetDiffs(r vcs.RepoGitReader, commitID string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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