Documentation ¶
Index ¶
- Variables
- func AppendCommit(path, file, fileData, commitMsg string)
- func AppendDirAndCommitFile(path, targetDir, file, fileData, commitMsg string)
- func AppendToFile(path, file string, data string)
- func CheckoutBranch(path, branch string)
- func CreateBlob(path, content string) string
- func CreateCheckoutBranch(path, branch string)
- func CreateCheckoutOrphanBranch(path, branch string)
- func CreateCommitAndAnnotatedTag(path, file, fileData, commitMsg, tagName string)
- func CreateCommitAndLightWeightTag(path, file, fileData, commitMsg, tagName string)
- func CreateCommitAndNote(path, file, fileData, commitMsg, noteName string)
- func CreateNote(path, msg, noteName string)
- func CreateNoteEntry(path, noteName, msg string) string
- func CreateTagPointedToTag(path, msg, tagName, pointedTagName string)
- func DeleteRef(path, name string)
- func DeleteTag(path, name string)
- func ExecAnyCmd(workDir, name string, args ...string) []byte
- func ExecGit(workDir string, args ...string) []byte
- func ExecGitAdd(path, file string) []byte
- func ExecGitCommit(path, msg string) []byte
- func ForceMergeOurs(path, targetBranch string)
- func GetRecentCommitHash(path, ref string) string
- func ScriptFile(path, file string) *script.Pipe
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 CheckoutBranch ¶
func CheckoutBranch(path, branch string)
func CreateBlob ¶
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 CreateTagPointedToTag ¶
func CreateTagPointedToTag(path, msg, tagName, pointedTagName string)
func ExecAnyCmd ¶
func ExecGitAdd ¶
func ExecGitCommit ¶
func ForceMergeOurs ¶
func ForceMergeOurs(path, targetBranch string)
func GetRecentCommitHash ¶
func ScriptFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.