Documentation ¶
Overview ¶
Package git wraps functionality in the go-git package to manipulate Git repositories
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanWorktree ¶
func CleanWorktree(worktree *git.Worktree) error
CleanWorktree runs the equivalent of `git clean -xfd .` on the current worktree
Types ¶
type IgnorePattern ¶
type IgnorePattern struct {
// contains filtered or unexported fields
}
IgnorePattern aliases string to add some additional documentation
func CompileIgnorePattern ¶
func CompileIgnorePattern(pattern string) (*IgnorePattern, error)
CompileIgnorePattern takes a given ignore pattern and attempts to create a Pattern object from it
func (*IgnorePattern) Matches ¶
func (p *IgnorePattern) Matches(path string) bool
Matches returns whether or not a given path matches the Codeowners path pattern
func (*IgnorePattern) String ¶
func (p *IgnorePattern) String() string
Click to show internal directories.
Click to hide internal directories.