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

Method IsCommitMode

internal/diff/git.go:96–98  ·  view source on GitHub ↗

IsCommitMode returns true when analyzing a single commit.

()

Source from the content-addressed store, hash-verified

94
95// IsCommitMode returns true when analyzing a single commit.
96func (p *Provider) IsCommitMode() bool {
97 return p.mode == ModeCommit
98}
99
100// MergeBase returns the computed merge-base commit hash for range mode.
101func (p *Provider) MergeBase(ctx context.Context) string {

Callers 1

TestIsCommitModeFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestIsCommitModeFunction · 0.76