gittest

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AssertCommitOp

type AssertCommitOp struct {
	From            *plumbing.Hash
	To              plumbing.Hash
	ExpectedCommits []ExpectedCommit
}

type BareRepository

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

func InitBareRepository

func InitBareRepository(path string) (*BareRepository, error)

func (*BareRepository) AssertCommits

func (r *BareRepository) AssertCommits(
	op AssertCommitOp,
)

func (*BareRepository) AssertInSyncWith

func (r *BareRepository) AssertInSyncWith(localRepo *git.LocalRepository)

func (*BareRepository) LocalCloneUrl

func (r *BareRepository) LocalCloneUrl() string

func (*BareRepository) Repository

func (r *BareRepository) Repository() *gitcore.Repository

type CreateBareAndLocalRepoOp

type CreateBareAndLocalRepoOp struct {
	SourceDir          string
	TargetBareRepoDir  string
	TargetLocalRepoDir string
}

type ExpectedCommit

type ExpectedCommit struct {
	Message      string
	ChangedFiles []string
}

func (*ExpectedCommit) AssertCommit

func (ec *ExpectedCommit) AssertCommit(
	c *object.Commit,
)

Jump to

Keyboard shortcuts

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