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

Method IsCommitMode

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

IsCommitMode returns true when analyzing a single commit.

()

Source from the content-addressed store, hash-verified

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

Callers 1

TestIsCommitModeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestIsCommitModeFunction · 0.76