Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnimplemented = errors.New("unimplemented") ErrInvalidWorktree = errors.New("invalid-worktree") ErrReadRepoDir = errors.New("error-read-gitignore-repo-dir") ErrNotFound = errors.New("not-found") ErrInvalidFile = errors.New("invalid-file") ErrReadFile = errors.New("failed-to-read-file") ErrCopyFile = errors.New("failed-to-copy-file") ErrFlushChanges = errors.New("failed-to-flush-changes") )
Functions ¶
This section is empty.
Types ¶
type GitIgnoreFile ¶
type GitIgnoreService ¶
type GitIgnoreService interface { Get(name string) (GitIgnoreFile, error) GetAll() []GitIgnoreFile Search(query string) ([]GitIgnoreFile, error) Write(file GitIgnoreFile, destFs billy.Filesystem) error Append(file GitIgnoreFile, destFs billy.Filesystem) error }
func Create ¶
func Create(repository *git.Repository) (GitIgnoreService, error)
type GitIgnores ¶
type GitIgnores []GitIgnoreFile
func (GitIgnores) Len ¶
func (g GitIgnores) Len() int
func (GitIgnores) String ¶
func (g GitIgnores) String(i int) string
Click to show internal directories.
Click to hide internal directories.