Documentation ¶
Index ¶
- func AddFile(t *testing.T, repo *git.Repo, filepath string)
- func CheckoutBranch(t *testing.T, repo *git.Repo, branch string) string
- func CommitFile(t *testing.T, repo *git.Repo, filename string, body []byte, ...) string
- func CreateFile(t *testing.T, repo *git.Repo, filename string, body []byte) string
- func NewTempRepo(t *testing.T) *git.Repo
- func WithCheckoutBranch(t *testing.T, repo *git.Repo, branch string, f func())
- type CommitFileOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckoutBranch ¶ added in v0.0.8
func CommitFile ¶
func CreateFile ¶ added in v0.0.34
func NewTempRepo ¶
NewTempRepo initializes a new git repository with reasonable defaults.
Types ¶
type CommitFileOpt ¶ added in v0.0.5
type CommitFileOpt func(*commitFileOpts)
func WithAmend ¶ added in v0.0.9
func WithAmend() CommitFileOpt
func WithMessage ¶ added in v0.0.5
func WithMessage(msg string) CommitFileOpt
Click to show internal directories.
Click to hide internal directories.