testgit

package
v1.15.18 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GitModule

func GitModule(location string, trackedFiles []string) fx.Option

Types

type TestGit

type TestGit struct {
	Location     string
	TrackedFiles []string
}

func New

func New(location string, trackedFiles []string) *TestGit

func NewFromFilesystem

func NewFromFilesystem(location string, paths []files.Path) *TestGit

func (*TestGit) FindGitRoot

func (t *TestGit) FindGitRoot(_ context.Context, loc string) (string, error)

func (*TestGit) ListTrackedFiles

func (t *TestGit) ListTrackedFiles(ctx context.Context, loc string) ([]string, error)

Jump to

Keyboard shortcuts

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