git

package
v0.14.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckoutRef

func CheckoutRef(logger *zap.Logger, repoPath, ref string) error

CheckoutRef checks out ref in repoPath.

func CloneTemp

func CloneTemp(logger *zap.Logger, repoURL, ref string) (string, error)

CloneTemp clones repoURL into a temporary directory and optionally checks out ref. The caller owns cleanup of the returned directory.

func FindRepoRoot

func FindRepoRoot(path string) (string, error)

FindRepoRoot resolves the git repository root for path.

func MaterializeLocalRef

func MaterializeLocalRef(logger *zap.Logger, sourceRepoPath, ref string) (string, error)

MaterializeLocalRef clones sourceRepoPath into a temporary directory and checks out ref. The caller owns cleanup of the returned directory.

func VerifyRef

func VerifyRef(repoPath, ref string) error

VerifyRef verifies that ref resolves to a commit in repoPath.

Types

This section is empty.

Jump to

Keyboard shortcuts

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