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

Method IsCommitMode

internal/diff/git.go:159–161  ·  view source on GitHub ↗

IsCommitMode returns true when analyzing a single commit.

()

Source from the content-addressed store, hash-verified

157
158// IsCommitMode returns true when analyzing a single commit.
159func (p *Provider) IsCommitMode() bool {
160 return p.mode == ModeCommit
161}
162
163// MergeBase returns the computed merge-base commit hash for range mode.
164func (p *Provider) MergeBase(ctx context.Context) string {

Callers 1

TestIsCommitModeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestIsCommitModeFunction · 0.76