gitpath

package
v0.11.2 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2018 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

Resolver resolves one or more git glob paths in a git repository by running git ls-files. Glob path only resolve to files that are tracked in the repository.

func NewResolver

func NewResolver(path string, globs ...string) *Resolver

NewResolver returns a resolver that resolves the passed git glob paths to absolute paths

func (*Resolver) Resolve

func (r *Resolver) Resolve() ([]string, error)

Resolve the glob paths to absolute file paths by calling git ls-files

Jump to

Keyboard shortcuts

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