commit

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2019 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

NewServer creates a new instance of a grpc CommitServiceServer

Types

type GetCommits added in v1.13.0

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

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

func NewGetCommits added in v1.13.0

func NewGetCommits(cmd *command.Command, batch *catfile.Batch) *GetCommits

NewGetCommits returns a new GetCommits object

func (*GetCommits) Commit added in v1.13.0

func (g *GetCommits) Commit() (*gitalypb.GitCommit, error)

Commit returns the current commit

func (*GetCommits) Err added in v1.13.0

func (g *GetCommits) Err() error

Err returns the first non EOF error

func (*GetCommits) Offset added in v1.13.0

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

Offset skips over a number of commits

func (*GetCommits) Scan added in v1.13.0

func (g *GetCommits) Scan() bool

Scan indicates whether or not there are more commits to return

type TreeEntryFinder added in v1.33.0

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

TreeEntryFinder is a struct for searching through a tree with caching.

func NewTreeEntryFinder added in v1.33.0

func NewTreeEntryFinder(c *catfile.Batch) *TreeEntryFinder

NewTreeEntryFinder initializes a TreeEntryFinder with an empty tree cache.

func (*TreeEntryFinder) FindByRevisionAndPath added in v1.33.0

func (tef *TreeEntryFinder) FindByRevisionAndPath(revision, path string) (*gitalypb.TreeEntry, error)

FindByRevisionAndPath returns a TreeEntry struct for the object present at the revision/path pair.

Jump to

Keyboard shortcuts

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