vypis zmenenych souborů
This commit is contained in:
22
js/model.js
22
js/model.js
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user