gitignore

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: 11 Imported by: 0

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 GitIgnoreFile struct {
	Name string
	Path string
}

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

Jump to

Keyboard shortcuts

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