commit

package
v14.10.5 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2022 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(
	locator storage.Locator,
	gitCmdFactory git.CommandFactory,
	ling *linguist.Instance,
	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.ObjectReader) *GetCommits

NewGetCommits returns a new GetCommits object

func (*GetCommits) Commit

func (g *GetCommits) Commit(ctx context.Context, trailers 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