MCPcopy Create free account
hub / github.com/bearlyai/OpenADE / createEmptyFilePatchResponse

Function createEmptyFilePatchResponse

projects/electron/src/modules/code/git.ts:1844–1856  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1842}
1843
1844function createEmptyFilePatchResponse(): GetFilePatchResponse {
1845 return {
1846 patch: "",
1847 truncated: false,
1848 heavy: false,
1849 stats: {
1850 insertions: 0,
1851 deletions: 0,
1852 changedLines: 0,
1853 hunkCount: 0,
1854 },
1855 }
1856}
1857
1858function resolveWorktreeFilePath(workDir: string, filePath: string): { absolutePath: string; relativePath: string } | null {
1859 const resolvedWorkDir = path.resolve(workDir)

Callers 4

getUntrackedFilePatchFunction · 0.85
handleGetCommitFilePatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected