MCPcopy Create free account
hub / github.com/Chat2AnyLLM/code-agent-manager / EffectiveBranch

Method EffectiveBranch

internal/repoconfig/repoconfig.go:94–102  ·  view source on GitHub ↗

EffectiveBranch returns the branch, defaulting to "main".

()

Source from the content-addressed store, hash-verified

92
93// EffectiveBranch returns the branch, defaulting to "main".
94func (r RepoEntry) EffectiveBranch() string {
95 if r.RepoBranch != "" {
96 return r.RepoBranch
97 }
98 if r.Branch != "" {
99 return r.Branch
100 }
101 return "main"
102}
103
104// SubPath returns the sub-directory inside the repo where entities live
105// (e.g. skillsPath or agentsPath).

Callers 6

entityListCommandFunction · 0.80
dryRunAllReposFunction · 0.80
fetchAllReposFunction · 0.80
RefreshAllMethod · 0.80

Calls

no outgoing calls

Tested by 1