MCPcopy Create free account
hub / github.com/pingdotgg/t3code / sourceBranch

Function sourceBranch

apps/server/src/sourceControl/SourceControlProvider.ts:68–73  ·  view source on GitHub ↗
(input: {
  readonly headSelector: string;
  readonly source?: SourceControlRefSelector;
})

Source from the content-addressed store, hash-verified

66}
67
68export function sourceBranch(input: {
69 readonly headSelector: string;
70 readonly source?: SourceControlRefSelector;
71}): string {
72 return input.source?.refName ?? normalizeSourceBranch(input.headSelector);
73}
74
75export function sourceControlRefFromInput(input: {
76 readonly headSelector: string;

Callers

nothing calls this directly

Calls 1

normalizeSourceBranchFunction · 0.85

Tested by

no test coverage detected