Documentation
¶
Index ¶
- Constants
- Variables
- func CheckGitDependencies() error
- func FetchLFSObjects(ctx context.Context, dir string) error
- func HasLFSObjects(ctx context.Context, dir string) (int, error)
- func RunGitCommand(ctx context.Context, dir string, env []string, args ...string) ([]byte, error)
- func RunGitCommandWithAuth(ctx context.Context, dir string, auth Credentials, args ...string) ([]byte, error)
- func RunGitLFSCommand(ctx context.Context, dir string, args ...string) ([]byte, error)
- type Credentials
Constants ¶
View Source
const ( MinVersionGit = 2.45 MinVersionGitLFS = 3.5 )
Variables ¶
View Source
var ( ErrGitNotInstalled = errors.New("git is not installed") ErrGitLFSNotInstalled = errors.New("git-lfs is not installed") ErrGitVersionTooOld = fmt.Errorf("git version must be %.2f or higher", MinVersionGit) ErrGitLFSVersionTooOld = fmt.Errorf("git-lfs version must be %.2f or higher", MinVersionGitLFS) )
Functions ¶
func CheckGitDependencies ¶
func CheckGitDependencies() error
func HasLFSObjects ¶
HasLFSObjects checks if the repository has any Git LFS objects and returns the count
func RunGitCommand ¶
func RunGitCommandWithAuth ¶
Types ¶
type Credentials ¶
Click to show internal directories.
Click to hide internal directories.