[ATL-1454] Refactor pull/push to edit files in place (#464)

* improve push/pull process

* improved diff tree performance generation

* skip some files to be synced

Co-authored-by: Francesco Stasi <f.stasi@me.com>
This commit is contained in:
Alberto Iannaccone
2021-07-28 14:00:54 +02:00
committed by GitHub
parent 57b9eb95bb
commit 65152731f9
5 changed files with 162 additions and 66 deletions

View File

@@ -22,6 +22,14 @@ export class SketchCache {
return this.fileStats[path] || null;
}
purgeByPath(path: string): void {
for (const itemPath in this.fileStats) {
if (itemPath.indexOf(path) === 0) {
delete this.fileStats[itemPath];
}
}
}
addSketch(sketch: Create.Sketch): void {
const { path } = sketch;
const posixPath = toPosixPath(path);