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

Method runGitCommandWithIO

repository/git.go:58–60  ·  view source on GitHub ↗

Run the given git command with the given I/O reader/writers, returning an error if it fails.

(stdin io.Reader, stdout, stderr io.Writer, args ...string)

Source from the content-addressed store, hash-verified

56
57// Run the given git command with the given I/O reader/writers, returning an error if it fails.
58func (repo *GitRepo) runGitCommandWithIO(stdin io.Reader, stdout, stderr io.Writer, args ...string) error {
59 return repo.runGitCommandWithIOAndEnv(stdin, stdout, stderr, nil, args...)
60}
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) {

Callers 8

runGitCommandRawMethod · 0.95
runGitCommandInlineMethod · 0.95
ListCommitsMethod · 0.95
StoreBlobMethod · 0.95
StoreTreeMethod · 0.95
notesOverviewMethod · 0.95
getIsCommitMapMethod · 0.80
getNoteContentsMapMethod · 0.80

Calls 1

Tested by

no test coverage detected