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

Method IsCommitMode

internal/diff/git.go:193–195  ·  view source on GitHub ↗

IsCommitMode returns true when analyzing a single commit.

()

Source from the content-addressed store, hash-verified

191
192// IsCommitMode returns true when analyzing a single commit.
193func (p *Provider) IsCommitMode() bool {
194 return p.mode == ModeCommit
195}
196
197// MergeBase returns the computed merge-base commit hash for range mode.
198func (p *Provider) MergeBase(ctx context.Context) string {

Callers 1

TestIsCommitModeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestIsCommitModeFunction · 0.76