operations

package
v16.2.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidBranch = errors.New("invalid branch name")

ErrInvalidBranch indicates a branch name is invalid

View Source
var ErrSignatureMissingNameOrEmail = errors.New(
	"commit: failed to parse signature - Signature cannot have an empty name or email",
)

ErrSignatureMissingNameOrEmail matches the git2go error

Functions

This section is empty.

Types

type Server

type Server struct {
	gitalypb.UnimplementedOperationServiceServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	hookManager hook.Manager,
	txManager transaction.Manager,
	locator storage.Locator,
	conns *client.Pool,
	git2goExecutor *git2go.Executor,
	gitCmdFactory git.CommandFactory,
	catfileCache catfile.Cache,
	updater *updateref.UpdaterWithHooks,
	signingKey string,
) *Server

NewServer creates a new instance of a grpc OperationServiceServer

func (*Server) UserApplyPatch

func (s *Server) UserApplyPatch(stream gitalypb.OperationService_UserApplyPatchServer) error

func (*Server) UserCherryPick

UserCherryPick tries to perform a cherry-pick of a given commit onto a branch. See the protobuf documentation for details.

func (*Server) UserCommitFiles

func (s *Server) UserCommitFiles(stream gitalypb.OperationService_UserCommitFilesServer) error

UserCommitFiles allows for committing from a set of actions. See the protobuf documentation for details.

func (*Server) UserCreateTag

func (*Server) UserDeleteBranch

UserDeleteBranch force-deletes a single branch in the context of a specific user. It executes hooks and contacts Rails to verify that the user is indeed allowed to delete that branch.

func (*Server) UserDeleteTag

func (*Server) UserFFBranch

func (*Server) UserMergeBranch

func (s *Server) UserMergeBranch(stream gitalypb.OperationService_UserMergeBranchServer) error

UserMergeBranch is a two stage streaming RPC that will merge two commits together and create a merge commit

func (*Server) UserMergeToRef

UserMergeToRef overwrites the given TargetRef to point to either Branch or FirstParentRef. Afterwards, it performs a merge of SourceSHA with either Branch or FirstParentRef and updates TargetRef to the merge commit.

func (*Server) UserRebaseConfirmable

func (s *Server) UserRebaseConfirmable(stream gitalypb.OperationService_UserRebaseConfirmableServer) error

func (*Server) UserRebaseToRef added in v16.2.0

UserRebaseToRef overwrites the given TargetRef with the result of rebasing SourceSHA on top of FirstParentRef, and returns the SHA of the HEAD of TargetRef.

func (*Server) UserRevert

func (*Server) UserSquash

UserSquash collapses a range of commits identified via a start and end revision into a single commit whose single parent is the start revision.

Jump to

Keyboard shortcuts

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