Documentation
¶
Index ¶
- Constants
- func CheckFileContents(path, expect string) error
- func CheckForFile(path string) error
- func CheckForProcess(pid int, found chan bool, errChan chan error)
- func CommitToTree(repo *git.Repository, hash string) (*git.Tree, error)
- func FmtClonePath(clonePath *string) *string
- func FmtCommand(strCMD, path string) (*exec.Cmd, error)
- func FmtDiffPath(clonePath, srvPath string) (newStr string)
- func TemplateCommits(strCMD, lastCommit, currCommit string) (string, error)
- type Commits
Constants ¶
View Source
const BASH = "/bin/bash"
BASH is the path to the bash executable in Linux
View Source
const GHWorkingCommit = "0000000000000000000000000000000000000000"
GHWorkingCommit is for new branches on Github that have this a previous commit
Variables ¶
This section is empty.
Functions ¶
func CheckFileContents ¶
CheckFileContents reads a file and compares it to a string
func CheckForFile ¶
CheckForFile is self explanatory... checks for files
func CheckForProcess ¶
CheckForProcess checks for a running process using the ptrace syscall
func CommitToTree ¶
CommitToTree takes a commit hash and fetches its git tree
func FmtClonePath ¶
FmtClonePath formats clonePath to a uniform format regardless of input
func FmtCommand ¶
FmtCommand formats a string to an exec'able command
func FmtDiffPath ¶
FmtDiffPath formats a path for diffing
func TemplateCommits ¶
TemplateCommits templates the commits hashes into commans
Types ¶
Click to show internal directories.
Click to hide internal directories.