diff options
author | Anne Jan Brouwer <brouwer@annejan.com> | 2015-08-04 00:31:57 +0200 |
---|---|---|
committer | Anne Jan Brouwer <brouwer@annejan.com> | 2015-08-04 00:31:57 +0200 |
commit | 8e185cc65e41aa786a11b765db33dce9d2a72e8b (patch) | |
tree | b16e0d27d70d78635d4b7506c8cfcf8e4f3c1be5 | |
parent | 425422f908eb4af2219d25eb5a6b1df9ce988ae2 (diff) |
added commit for removal in "native" mode
-rw-r--r-- | mainwindow.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp index ff504121..6b74e90d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -938,7 +938,7 @@ void MainWindow::setPassword(QString file, bool overwrite, bool isNew = false) QString path = file; path.replace(QRegExp("\\.gpg$"), ""); path.replace(QRegExp("^" + passStore), ""); - executeWrapper(gitExecutable, "commit \"" + file + "\" -m \"" + (overwrite ? "Edit" : "Add") + " for " + path + " using QtPass\""); + executeWrapper(gitExecutable, "commit \"" + file + "\" -m \"" + (overwrite ? "Edit" : "Add") + " for " + path + " using QtPass.\""); } } } @@ -985,6 +985,7 @@ void MainWindow::on_deleteButton_clicked() } else { if (useGit) { executeWrapper(gitExecutable, "rm -f \"" + file + '"'); + executeWrapper(gitExecutable, "commit \"" + file + "\" -m \" Remove for " + getFile(ui->treeView->currentIndex(), true) + " using QtPass.\""); } else { QFile(file).remove(); } @@ -1189,7 +1190,7 @@ void MainWindow::on_usersButton_clicked() } QString path = gpgIdFile; path.replace(QRegExp("\\.gpg$"), ""); - executeWrapper(gitExecutable, "commit \"" + gpgIdFile + "\" -m \"Added "+ path + " using QtPass\""); + executeWrapper(gitExecutable, "commit \"" + gpgIdFile + "\" -m \"Added "+ path + " using QtPass.\""); } } |