diff --git a/public/preload/services.js b/public/preload/services.js index 0b12fd1..61177f2 100644 --- a/public/preload/services.js +++ b/public/preload/services.js @@ -176,6 +176,10 @@ window.services = { return this.execGit("-c core.quotePath=false status --short", dirPath); }, + async gitBranch(dirPath) { + return this.execGit("branch --show-current", dirPath); + }, + async gitAdd(dirPath, files = ".") { return this.execGit(`add ${files}`, dirPath); }, diff --git a/src/components/GitPanel.vue b/src/components/GitPanel.vue index aa49ec4..9117da1 100644 --- a/src/components/GitPanel.vue +++ b/src/components/GitPanel.vue @@ -5,28 +5,39 @@