githelper

package
v0.9.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloneRepo

func CloneRepo(t *testing.T, opts *extgogit.CloneOptions) (*extgogit.Repository, string)

func Commit

func Commit(repo *extgogit.Repository, time time.Time) (plumbing.Hash, error)

func CreateBranch

func CreateBranch(repo *extgogit.Repository, branch string) error

func CreateFile

func CreateFile(wt *extgogit.Worktree, path, content string) error

func CreateFileWithAdding

func CreateFileWithAdding(repo *extgogit.Repository, path, content string) error

func DeleteFile

func DeleteFile(wt *extgogit.Worktree, path string) error

func DeleteFileWithAdding

func DeleteFileWithAdding(repo *extgogit.Repository, path string) error

func GetBranch

func GetBranch(t *testing.T, repo *extgogit.Repository) string

func GetRemoteBranch

func GetRemoteBranch(t *testing.T, repo *extgogit.Repository, remoteName, branchName string) *plumbing.Reference

func GetRemoteBranches

func GetRemoteBranches(t *testing.T, repo *extgogit.Repository, remoteName string) []*plumbing.Reference

func GetStatus

func GetStatus(t *testing.T, repo *extgogit.Repository) extgogit.Status

func InitBareRepo

func InitBareRepo(t *testing.T) (*extgogit.Repository, string)

func InitRepo

func InitRepo(t *testing.T, branch string) (*extgogit.Repository, string)

func InitRepoWithRemote

func InitRepoWithRemote(t *testing.T, branch, remote string) (*extgogit.Repository, string, string)

func MockSignature

func MockSignature(time time.Time) *object.Signature

func ModifyFile

func ModifyFile(wt *extgogit.Worktree, path, content string) error

func Push

func Push(repo *extgogit.Repository, branch, remote string) error

func SetupRemoteRepo

func SetupRemoteRepo(t *testing.T, opt *gogit.GitOptions) (*gogit.GitRemote, *gogit.Git, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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