Documentation ¶
Index ¶
- func BranchList(repo *git.Repository) []*git.Branch
- func CheckoutBranch(repo *git.Repository, branchName string) error
- func CherryPick(repo *git.Repository, commitId string, baseBranch string) (*git.Oid, error)
- func Clean(path string)
- func Clone(repoPath string) *git.Repository
- func GetCommits(repo *git.Repository, remoteBranch string) []*git.Commit
- func Push(repo *git.Repository, branch string) error
- func Run()
- type CommitCareerService
- func (s *CommitCareerService) CherryPick(ctx context.Context, message *pb.CherryPickRequest) (*pb.CherryPickResponse, error)
- func (s *CommitCareerService) FetchBranches(ctx context.Context, message *pb.FetchBranchRequest) (*pb.FetchBranchResponse, error)
- func (s *CommitCareerService) FetchCommits(ctx context.Context, message *pb.FetchCommitsRequest) (*pb.FetchCommitsResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BranchList ¶
func BranchList(repo *git.Repository) []*git.Branch
func CheckoutBranch ¶
func CherryPick ¶
func GetCommits ¶
func GetCommits(repo *git.Repository, remoteBranch string) []*git.Commit
Types ¶
type CommitCareerService ¶
type CommitCareerService struct{}
func (*CommitCareerService) CherryPick ¶
func (s *CommitCareerService) CherryPick(ctx context.Context, message *pb.CherryPickRequest) (*pb.CherryPickResponse, error)
func (*CommitCareerService) FetchBranches ¶
func (s *CommitCareerService) FetchBranches(ctx context.Context, message *pb.FetchBranchRequest) (*pb.FetchBranchResponse, error)
func (*CommitCareerService) FetchCommits ¶
func (s *CommitCareerService) FetchCommits(ctx context.Context, message *pb.FetchCommitsRequest) (*pb.FetchCommitsResponse, error)
Click to show internal directories.
Click to hide internal directories.