Documentation ¶
Index ¶
- func DiffContents(src string, dst string) []diffmatchpatch.Diff
- func ExecCommitsInRange(repoDir string, branch string, since string, until string) ([]string, error)
- func ExecDiffIsBinary(repoDir string, commitId string, filePath string) (bool, error)
- func ExecDiffTree(repoDir string, commitId1 string) ([]string, error)
- func ExecGetCommitAtDate(repoDir string, branch string, when string) (string, error)
- func ExecListTree(repoDir string, commitId string) ([]string, error)
- func ExecPreviousCommitIdForFile(repoDir string, commitId string, filePath string) (string, error)
- func ExecShell(workingDir string, command string) (string, error)
- func ExecShellTimeout(workingDir string, command string, timeout time.Duration, ...) (string, error)
- func ExecShellf(workingDir string, command string, args ...interface{}) (string, error)
- func ExecTreeFileSize(repoDir string, commitId string, filePath string) (int, error)
- func GetCmdOutput(cmd *cmd.Cmd) string
- func ResolveTestOwnershipRepo() (string, error)
- func ShowProgress(progressChan <-chan ProgressInfo)
- type BaseOptions
- type BlameLine
- type CommitInfo
- type DiffEntry
- type DiffOp
- type LineText
- type ProgressInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiffContents ¶
func DiffContents(src string, dst string) []diffmatchpatch.Diff
FIXME remove later if not used
func ExecCommitsInRange ¶
func ExecDiffIsBinary ¶
func ExecGetCommitAtDate ¶
FIXME check if this is used and delete it
func ExecShellTimeout ¶
func ExecShellTimeout(workingDir string, command string, timeout time.Duration, expectedExitCodes []int) (string, error)
ExecShellTimeout execute a shell command (like bash -c 'your command') with a timeout. After that time, the process will be cancelled
func ExecShellf ¶
ExecShellf execute a shell command (like bash -c 'your command') but with format replacements
func ExecTreeFileSize ¶
func GetCmdOutput ¶
GetCmdOutput join stdout and stderr in a single string from Cmd
func ShowProgress ¶
func ShowProgress(progressChan <-chan ProgressInfo)
Types ¶
type BaseOptions ¶
type BlameLine ¶
type BlameLine struct { // AuthorName is the name of the last author that modified the line AuthorName string // AuthorMail is the mail of the last author that modified the line AuthorMail string // Date is when the original text of the line was introduced AuthorDate time.Time // Hash is the commit hash that introduced the original line CommitId string LineContents string }
type CommitInfo ¶
func ExecGitCommitInfo ¶
func ExecGitCommitInfo(repoDir string, commitId string) (CommitInfo, error)
Click to show internal directories.
Click to hide internal directories.