MCPcopy Create free account
hub / github.com/driangle/taskmd / resolveGitRoot

Function resolveGitRoot

apps/cli/internal/cli/commit_msg.go:453–455  ·  view source on GitHub ↗
(scanDir string)

Source from the content-addressed store, hash-verified

451var gitRootFunc = defaultGitRoot
452
453func resolveGitRoot(scanDir string) (string, error) {
454 return gitRootFunc(scanDir)
455}
456
457func defaultGitRoot(scanDir string) (string, error) {
458 cmd := exec.Command("git", "rev-parse", "--show-toplevel")

Callers 1

findTaskChangesFromDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected