Documentation ¶
Index ¶
- func CloneRepo(t *testing.T, opts *extgogit.CloneOptions) (*extgogit.Repository, string)
- func Commit(repo *extgogit.Repository, time time.Time) (plumbing.Hash, error)
- func CreateBranch(repo *extgogit.Repository, branch string) error
- func CreateFile(wt *extgogit.Worktree, path, content string) error
- func CreateFileWithAdding(repo *extgogit.Repository, path, content string) error
- func DeleteFile(wt *extgogit.Worktree, path string) error
- func DeleteFileWithAdding(repo *extgogit.Repository, path string) error
- func GetBranch(t *testing.T, repo *extgogit.Repository) string
- func GetRemoteBranch(t *testing.T, repo *extgogit.Repository, remoteName, branchName string) *plumbing.Reference
- func GetRemoteBranches(t *testing.T, repo *extgogit.Repository, remoteName string) []*plumbing.Reference
- func GetStatus(t *testing.T, repo *extgogit.Repository) extgogit.Status
- func InitBareRepo(t *testing.T) (*extgogit.Repository, string)
- func InitRepo(t *testing.T, branch string) (*extgogit.Repository, string)
- func InitRepoWithRemote(t *testing.T, branch, remote string) (*extgogit.Repository, string, string)
- func MockSignature(time time.Time) *object.Signature
- func ModifyFile(wt *extgogit.Worktree, path, content string) error
- func Push(repo *extgogit.Repository, branch, remote string) error
- func SetupRemoteRepo(t *testing.T, opt *gogit.GitOptions) (*gogit.GitRemote, *gogit.Git, string)
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 CreateBranch ¶
func CreateBranch(repo *extgogit.Repository, branch string) error
func CreateFileWithAdding ¶
func CreateFileWithAdding(repo *extgogit.Repository, path, content string) error
func DeleteFileWithAdding ¶
func DeleteFileWithAdding(repo *extgogit.Repository, path string) error
func GetRemoteBranch ¶
func GetRemoteBranches ¶
func InitBareRepo ¶
func InitBareRepo(t *testing.T) (*extgogit.Repository, string)
func InitRepoWithRemote ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.