pkg

package
v0.0.0-...-cddf273 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NotARepoError = errors.New("not a git repository")

Functions

func FindRepository

func FindRepository(workingDirectory string) (string, error)

func GetGitConfigFile

func GetGitConfigFile(gitDir string) string

func IsEmptyDirectory

func IsEmptyDirectory(directoryName string) (bool, error)

func JoinDir

func JoinDir(parent ...string) string

func WriteDefaultGitConfig

func WriteDefaultGitConfig(baseRepository string) error

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func NewRepository

func NewRepository(path string, force bool) (*Repository, error)

func (Repository) Create

func (repo Repository) Create() error

func (Repository) GetGitDirectoryPath

func (repo Repository) GetGitDirectoryPath() string

func (Repository) GetWorkTreeDirectory

func (repo Repository) GetWorkTreeDirectory() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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