Help us shape the future of Go! Take the 2026 Go Developer Survey

git

package
v0.494.4 Latest Latest
Warning

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

Go to latest
Published: May 16, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Git

type Git interface {
	Init(ctx context.Context, repo string) error
	Fetch(ctx context.Context, branch string, shallow bool) error
	Checkout(ctx context.Context, ref string) error
	GetCommitSHA(ctx context.Context) (string, error)
	ReadFile(ctx context.Context, path string) ([]byte, error)
}

func NewGitCLI

func NewGitCLI(dir string) Git

Jump to

Keyboard shortcuts

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