repo

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Manager for managing a git repository

func (*Manager) CreateBranchWithContentFromMain

func (m *Manager) CreateBranchWithContentFromMain(branch string, writeContent func() error) error

CreateBranchWithContentFromMain creates a branch and invokes the writeContents func before committing

func (*Manager) CreateRepoWithContent

func (m *Manager) CreateRepoWithContent(writeContent func() error) error

CreateRepoWithContent creates a repository and invokes the writeContents func before committing

func (*Manager) MergeBranches

func (m *Manager) MergeBranches(branch1, branch2 string) ([]string, error)

MergeBranches merges two branches

type RepoManager

type RepoManager interface {
	CreateRepoWithContent(contentWriter func() error) error
	CreateBranchWithContentFromMain(branch string, contentWriter func() error) error
	MergeBranches(branch1, branch2 string) ([]string, error)
}

RepoManager for managing a git repository

func NewManager

func NewManager(gitClient git.Git) RepoManager

NewManager creates a RepoManager

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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