commit

package
v1.38.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// InvalidUTF8PathPlaceholder is a placeholder we return in the Path field since
	// returning non utf8 data will result in a marshalling error
	// Once we deprecate the Path field, we can remove this
	InvalidUTF8PathPlaceholder = "ENCODING ERROR gitaly#1547"
)

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