VCS: Offer to save-all before commit

Task-number: QTCREATORBUG-3857
Change-Id: I3ff3d90803eec4134b9da4af5567753ad7bffafb
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Tobias Hunger
2017-09-08 12:52:35 +02:00
parent 1e3b5418ea
commit 21ab4c427c
11 changed files with 48 additions and 1 deletions

View File

@@ -178,6 +178,11 @@ public:
const QProcessEnvironment &env = QProcessEnvironment());
protected:
// Display name of the commit action:
virtual QString commitDisplayName() const;
// Prompt to save all files before commit:
bool promptBeforeCommit();
// Convenience slot for "Delete current file" action. Prompts to
// delete the file via VcsManager.
void promptToDeleteCurrentFile();