Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Resolver ¶
type Resolver struct{}
Resolver resolves one or more git glob paths in a git repository by running git ls-files. Glob paths are only resolved to files that exist in the filesystem and are tracked in the repository.
func (*Resolver) Resolve ¶
Resolve resolves the glob paths to absolute file paths by calling git ls-files. workingDir must be a directory that is part of a Git repository. Glob must be a pattern that is an absolute path. If a glob does not resolve to an existing file in the filesystem or the file is not part of the git repository an empty slice is returned.
Click to show internal directories.
Click to hide internal directories.