Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyPath = errors.New("path is empty string") ErrPathNotAFile = errors.New("the path is not a file") ErrReachedRoot = errors.New("we reached the root without finding a .git file or folder") ErrParseRepoPath = errors.New("failed to parse repository path") ErrParseBareRepoPath = errors.New("failed to parse bare repository path") )
Functions ¶
Types ¶
type FileParser ¶
type FileParser struct {
Reader Reader
}
func (FileParser) ParseFile ¶
func (f FileParser) ParseFile(absolutePath, filetype string) (pulse.GitFile, error)
ParseFile returns a ParseFile struct from an absolute path. It will return an error if the path is empty, if the path is not a file or if it can't find a parent .git file or folder before it reaches the root of the file tree.
Click to show internal directories.
Click to hide internal directories.