MCPcopy Create free account
hub / github.com/ds300/patch-package / emptyFilePatch

Function emptyFilePatch

src/patch/parse.ts:115–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113}
114
115const emptyFilePatch = (): FileDeets => ({
116 diffLineFromPath: null,
117 diffLineToPath: null,
118 oldMode: null,
119 newMode: null,
120 deletedFileMode: null,
121 newFileMode: null,
122 renameFrom: null,
123 renameTo: null,
124 beforeHash: null,
125 afterHash: null,
126 fromPath: null,
127 toPath: null,
128 hunks: null,
129})
130
131const emptyHunk = (headerLine: string): Hunk => ({
132 header: parseHunkHeaderLine(headerLine),

Callers 2

parsePatchLinesFunction · 0.85
commitFilePatchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…