git

package
v1.13.0 Latest Latest
Warning

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

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

Documentation

Overview

Package git provides functionality related to Git repos.

Index

Constants

View Source
const (
	// ErrorFile is the file name of the git-sync error file.
	ErrorFile = "error.json"
)

Variables

This section is empty.

Functions

func CheckClean

func CheckClean(dir string) error

CheckClean returns an error if the repo pointed to by dir is not clean, or there was an error invoking Git while checking. Deprecated: Only used by the legacy mono-repo mode.

func CommitHash

func CommitHash(dirPath string) (string, error)

CommitHash parses the Git commit hash from the given directory path. Deprecated: Only used by the legacy mono-repo mode.

func ListFiles

func ListFiles(dir cmpath.Absolute) ([]cmpath.Absolute, error)

ListFiles returns a list of all files tracked by git in the specified repo directory. Deprecated: Only used by the legacy mono-repo mode.

func SyncError

func SyncError(container, filepath, label string) string

SyncError returns the error details from the error file generated by the git-sync|oci-sync process.

Types

This section is empty.

Jump to

Keyboard shortcuts

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