MCPcopy Index your code
hub / github.com/refined-github/refined-github / getHeadReference

Function getHeadReference

source/features/restore-file.tsx:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25async function getHeadReference(): Promise<string> {
26 const {base} = getBranches();
27 const {headRefOid} = await getPrInfo(base.relative);
28 return headRefOid;
29}
30
31async function getFile(filePath: string): Promise<string | undefined> {
32 const ref = await getMergeBaseReference();

Callers 1

discardChangesFunction · 0.85

Calls 2

getBranchesFunction · 0.85
getPrInfoFunction · 0.85

Tested by

no test coverage detected