ref

package
v1.86.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrOnlyForEachRefAllowed indicates a command other than for-each-ref is being used with ForEachRefCmd
	ErrOnlyForEachRefAllowed = errors.New("only for-each-ref allowed")

	// ErrNoPostSeparatorArgsAllowed indicates post separator args exist when none are allowed
	ErrNoPostSeparatorArgsAllowed = errors.New("post separator args not allowed")
)
View Source
var (

	// FindBranchNames is exported to be used in other packages
	FindBranchNames = _findBranchNames
)

Functions

func DefaultBranchName added in v0.23.0

func DefaultBranchName(ctx context.Context, repo *gitalypb.Repository) ([]byte, error)

DefaultBranchName looks up the name of the default branch given a repoPath

func NewServer

NewServer creates a new instance of a grpc RefServer

Types

type ForEachRefCmd added in v1.72.0

type ForEachRefCmd struct {
	git.SubCmd
	PostArgFlags []git.Option
}

ForEachRefCmd is a command specialized for for-each-ref

func (ForEachRefCmd) IsCmd added in v1.72.0

func (f ForEachRefCmd) IsCmd()

IsCmd is to satisfy the git.Cmd interface

func (ForEachRefCmd) ValidateArgs added in v1.72.0

func (f ForEachRefCmd) ValidateArgs() ([]string, error)

ValidateArgs validates and returns the flags and arguments for the for-each-ref command

Jump to

Keyboard shortcuts

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