MCPcopy Index your code
hub / github.com/coder/coder / FetchBranchDiff

Method FetchBranchDiff

coderd/externalauth/gitprovider/gitprovider.go:149–149  ·  view source on GitHub ↗

FetchBranchDiff returns the diff of a branch compared against the repository's default branch. This is the fallback when no pull request exists yet (e.g. the agent pushed a branch but hasn't opened a PR). Returns ErrDiffTooLarge if the diff exceeds MaxDiffSize.

(ctx context.Context, token string, ref BranchRef)

Source from the content-addressed store, hash-verified

147 // pushed a branch but hasn't opened a PR). Returns
148 // ErrDiffTooLarge if the diff exceeds MaxDiffSize.
149 FetchBranchDiff(ctx context.Context, token string, ref BranchRef) (string, error)
150
151 // ParseRepositoryOrigin parses a remote origin URL (HTTPS
152 // or SSH) into owner and repo components, returning the

Callers 5

TestGitLabIntegrationFunction · 0.65
TestFetchBranchDiffFunction · 0.65

Calls

no outgoing calls

Tested by 4

TestGitLabIntegrationFunction · 0.52
TestFetchBranchDiffFunction · 0.52