MCPcopy Create free account
hub / github.com/LegacyCodeHQ/clarity-cli / gitCommandError

Function gitCommandError

vcs/git/git_runner.go:38–46  ·  view source on GitHub ↗
(err error, stderr string)

Source from the content-addressed store, hash-verified

36}
37
38func gitCommandError(err error, stderr string) error {
39 if err == nil {
40 return nil
41 }
42 if stderr != "" {
43 return fmt.Errorf("git command failed: %s", stderr)
44 }
45 return err
46}

Callers 15

getHEADSignatureFunction · 0.85
GetUncommittedFileStatsFunction · 0.85
GetCommitFileStatsFunction · 0.85
GetCommitRangeFileStatsFunction · 0.85
getCommitFileStatusesFunction · 0.85
GetRepositoryRootFunction · 0.85
GetCurrentCommitHashFunction · 0.85
GetShortCommitHashFunction · 0.85
HasUncommittedChangesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected