MCPcopy Index your code
hub / github.com/desktop/desktop / ensureRelativePath

Function ensureRelativePath

app/src/lib/git/diff.ts:970–971  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

968// some platforms and not others. See
969// https://git-scm.com/docs/gitglossary#Documentation/gitglossary.txt-top
970const ensureRelativePath = (path: string) =>
971 isAbsolute(path) ? `:(top,literal)${path}` : path

Callers 4

getCommitDiffFunction · 0.85
getBranchMergeBaseDiffFunction · 0.85
getCommitRangeDiffFunction · 0.85
getWorkingDirectoryDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected