testutil

package
v0.0.32 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GitEnv = os.Environ()

Functions

func AppendCommit

func AppendCommit(path, file, fileData, commitMsg string)

func AppendDirAndCommitFile

func AppendDirAndCommitFile(path, targetDir, file, fileData, commitMsg string)

func AppendToFile

func AppendToFile(path, file string, data string)

func CheckoutBranch

func CheckoutBranch(path, branch string)

func CreateBlob

func CreateBlob(path, content string) string

func CreateCheckoutBranch

func CreateCheckoutBranch(path, branch string)

func CreateCheckoutOrphanBranch

func CreateCheckoutOrphanBranch(path, branch string)

func CreateCommitAndAnnotatedTag

func CreateCommitAndAnnotatedTag(path, file, fileData, commitMsg, tagName string)

func CreateCommitAndLightWeightTag

func CreateCommitAndLightWeightTag(path, file, fileData, commitMsg, tagName string)

func CreateCommitAndNote

func CreateCommitAndNote(path, file, fileData, commitMsg, noteName string)

func CreateNote

func CreateNote(path, msg, noteName string)

func CreateNoteEntry

func CreateNoteEntry(path, noteName, msg string) string

func CreateTagPointedToTag

func CreateTagPointedToTag(path, msg, tagName, pointedTagName string)

func DeleteRef

func DeleteRef(path, name string)

func DeleteTag

func DeleteTag(path, name string)

func ExecAnyCmd

func ExecAnyCmd(workDir, name string, args ...string) []byte

func ExecGit

func ExecGit(workDir string, args ...string) []byte

func ExecGitAdd

func ExecGitAdd(path, file string) []byte

func ExecGitCommit

func ExecGitCommit(path, msg string) []byte

func ForceMergeOurs

func ForceMergeOurs(path, targetBranch string)

func GetRecentCommitHash

func GetRecentCommitHash(path, ref string) string

func ScriptFile

func ScriptFile(path, file string) *script.Pipe

Types

This section is empty.

Jump to

Keyboard shortcuts

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