forked from qt-creator/qt-creator
Vcs: Delete commit message file after commit
Change-Id: I5786fb49d99c793319d28d5a14460f962f416ab5 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -514,10 +514,12 @@ void VcsBaseClient::commit(const QString &repositoryRoot,
|
||||
// So descendants of VcsBaseClient *must* redefine commit() and extend
|
||||
// extraOptions with the usage for commitMessageFile (see BazaarClient::commit()
|
||||
// for example)
|
||||
Q_UNUSED(commitMessageFile);
|
||||
QStringList args(vcsCommandString(CommitCommand));
|
||||
args << extraOptions << files;
|
||||
enqueueJob(createCommand(repositoryRoot, 0, VcsWindowOutputBind), args);
|
||||
VcsCommand *cmd = createCommand(repositoryRoot, 0, VcsWindowOutputBind);
|
||||
if (!commitMessageFile.isEmpty())
|
||||
connect(cmd, &VcsCommand::finished, [commitMessageFile]() { QFile(commitMessageFile).remove(); });
|
||||
enqueueJob(cmd, args);
|
||||
}
|
||||
|
||||
VcsBaseClientSettings *VcsBaseClient::settings() const
|
||||
|
Reference in New Issue
Block a user