MCPcopy Create free account
hub / github.com/alibaba/open-code-review / resolveBackgroundFilePath

Function resolveBackgroundFilePath

cmd/opencodereview/background_file.go:25–30  ·  view source on GitHub ↗
(repoDir, path string)

Source from the content-addressed store, hash-verified

23var multiNewline = regexp.MustCompile(`\n{3,}`)
24
25func resolveBackgroundFilePath(repoDir, path string) string {
26 if path == "" || filepath.IsAbs(path) {
27 return path
28 }
29 return filepath.Join(repoDir, path)
30}
31
32// selectBackground returns the effective background. --background and
33// --background-file are two entry points for the same capability, so only one

Callers 3

resolveBackgroundFunction · 0.85

Calls

no outgoing calls