Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitLogCommand ¶
func GitLogCommand(ctx context.Context, gitCmdFactory git.CommandFactory, repo repository.GitRepo, revisions []git.Revision, paths []string, options *gitalypb.GlobalOptions, extraArgs ...git.Option) (*command.Command, error)
GitLogCommand returns a Command that executes git log with the given the arguments
func IsNotFound ¶
IsNotFound tests if an error is a "not found" error.
func LastCommitForPath ¶
func LastCommitForPath( ctx context.Context, gitCmdFactory git.CommandFactory, objectReader catfile.ObjectReader, repo repository.GitRepo, revision git.Revision, path string, options *gitalypb.GlobalOptions, ) (*gitalypb.GitCommit, error)
LastCommitForPath returns the last commit which modified path.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser holds necessary state for parsing a git log stream
func NewParser ¶
func NewParser(ctx context.Context, catfileCache catfile.Cache, repo git.RepositoryExecutor, src io.Reader) (*Parser, error)
NewParser returns a new Parser
func (*Parser) Commit ¶
Commit returns a successfully parsed git log line. It should be called only when Parser.Parse() returns true.
Click to show internal directories.
Click to hide internal directories.