MCPcopy Index your code
hub / github.com/google/git-appraise / runGitCommandRaw

Method runGitCommandRaw

repository/git.go:63–68  ·  view source on GitHub ↗

Run the given git command and return its stdout, or an error if the command fails.

(args ...string)

Source from the content-addressed store, hash-verified

61
62// Run the given git command and return its stdout, or an error if the command fails.
63func (repo *GitRepo) runGitCommandRaw(args ...string) (string, string, error) {
64 var stdout bytes.Buffer
65 var stderr bytes.Buffer
66 err := repo.runGitCommandWithIO(nil, &stdout, &stderr, args...)
67 return strings.TrimSpace(stdout.String()), strings.TrimSpace(stderr.String()), err
68}
69
70// Run the given git command and return its stdout, or an error if the command fails.
71func (repo *GitRepo) runGitCommand(args ...string) (string, error) {

Callers 4

runGitCommandMethod · 0.95
NewGitRepoFunction · 0.95
HasRefMethod · 0.95
IsAncestorMethod · 0.95

Calls 2

runGitCommandWithIOMethod · 0.95
StringMethod · 0.80

Tested by

no test coverage detected