git

package
v0.0.0-...-e9be31e Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const GitIgnoreRepository string = "https://github.com/github/gitignore"

Variables

View Source
var (
	ErrInvalidPath    = errors.New("invalid-path")
	ErrGitServiceInit = errors.New("git-service-init-failed")
	ErrChroot         = errors.New("failed-to-chroot")
)

Functions

func Create

func Create(ctx context.Context, options CreateOptions) (*git.Repository, error)

Create creates a Git Repository and returns a reference to it

func DefaultRepoDir

func DefaultRepoDir() string

Types

type CreateOptions

type CreateOptions struct {
	RepositoryDir    string
	UpdateRepository bool
}

CreateOptions contains config parameters for creating a Git repository

Jump to

Keyboard shortcuts

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