Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitLogCommand ¶
func GitLogCommand(ctx context.Context, gitCmdFactory git.CommandFactory, repo storage.Repository, 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 LastCommitForPath ¶
func LastCommitForPath( ctx context.Context, gitCmdFactory git.CommandFactory, objectReader catfile.ObjectContentReader, repo storage.Repository, 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, func(), 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.