commit

package
v15.10.2 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	cfg config.Cfg,
	locator storage.Locator,
	gitCmdFactory git.CommandFactory,
	catfileCache catfile.Cache,
) gitalypb.CommitServiceServer

NewServer creates a new instance of a grpc CommitServiceServer

Types

type GetCommits

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

GetCommits wraps a git log command that can be iterated on to get individual commit objects

func NewGetCommits

func NewGetCommits(cmd *command.Command, objectReader catfile.ObjectContentReader, shortStat bool) *GetCommits

NewGetCommits returns a new GetCommits object

func (*GetCommits) Commit

func (g *GetCommits) Commit(ctx context.Context, trailers, shortStat, refs bool) (*gitalypb.GitCommit, error)

Commit returns the current commit

func (*GetCommits) Err

func (g *GetCommits) Err() error

Err returns the first non EOF error

func (*GetCommits) Offset

func (g *GetCommits) Offset(offset int) error

Offset skips over a number of commits

func (*GetCommits) Scan

func (g *GetCommits) Scan() bool

Scan indicates whether or not there are more commits to return

Jump to

Keyboard shortcuts

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