MCPcopy Index your code
hub / github.com/rtfpessoa/diff2html / saveFile

Function saveFile

src/diff-parser.ts:113–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 * if it has name (to avoid binary files errors)
112 */
113 function saveFile(): void {
114 if (currentFile !== null) {
115 if (!currentFile.oldName && possibleOldName !== null) {
116 currentFile.oldName = possibleOldName;
117 }
118
119 if (!currentFile.newName && possibleNewName !== null) {
120 currentFile.newName = possibleNewName;
121 }
122
123 if (currentFile.newName) {
124 files.push(currentFile);
125 currentFile = null;
126 }
127 }
128
129 possibleOldName = null;
130 possibleNewName = null;
131 }
132
133 /* Create file structure */
134 function startFile(): void {

Callers 2

startFileFunction · 0.85
parseFunction · 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…