vypis zmenenych souborů

This commit is contained in:
2021-01-09 16:44:58 +01:00
parent 4696151eef
commit 641c58e419
4 changed files with 64 additions and 11 deletions

View File

@@ -77,6 +77,27 @@ class Model {
return statList;
}
async getChangedFiles(dirTree, statTree) {
var changedFiles = [];
for (let i = 1; i < dirTree.length; i++) {
if (Array.isArray(dirTree[i])) {
var vnorena = await this.getChangedFiles(dirTree[i], statTree[i]);
if (vnorena.length != 0) {
for (let i = 0; i < vnorena.length; i++) {
changedFiles.push(vnorena[i]);
}
}
} else {
if (statTree[i] != "unmodified") {
changedFiles.push(dirTree[0] + dirTree[i]);
}
}
}
return changedFiles;
}
/* ================== Text Area ================== */
readFile(file) {
@@ -158,6 +179,7 @@ class Model {
email: localStorage.getItem("email"),
},
});
await this.getGitStatusTree();
}
async gitPush(gitUser, gitPass) {