MCPcopy Create free account
hub / github.com/cloudflare/computer / hasRevisionSuffix

Function hasRevisionSuffix

packages/computer/src/git/cli.ts:2341–2343  ·  view source on GitHub ↗

True when `ref` carries a `gitrevisions(7)` ancestry suffix.

(ref: string)

Source from the content-addressed store, hash-verified

2339
2340/** True when `ref` carries a `gitrevisions(7)` ancestry suffix. */
2341function hasRevisionSuffix(ref: string): boolean {
2342 return /[\^~]/.test(ref);
2343}
2344
2345/**
2346 * Resolve a ref that may carry a revision suffix (`HEAD^`,

Callers 2

isResetRefOnlyFunction · 0.85
resolveRevisionRefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected