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 ¶
func NewServer() gitalypb.CommitServiceServer
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
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.
Source Files ¶
- between.go
- commit_messages.go
- commit_signatures.go
- commits_by_message.go
- commits_helper.go
- count_commits.go
- count_diverging_commits.go
- filter_shas_with_signatures.go
- find_all_commits.go
- find_commit.go
- find_commits.go
- isancestor.go
- languages.go
- last_commit_for_path.go
- list_commits_by_oid.go
- list_commits_by_ref_name.go
- list_files.go
- list_last_commits_for_tree.go
- raw_blame.go
- server.go
- stats.go
- tree_entries.go
- tree_entries_helper.go
- tree_entry.go
- util.go
Click to show internal directories.
Click to hide internal directories.