Fixes: Ability to uncheck files in git.

This commit is contained in:
Friedemann Kleint
2008-12-02 15:43:58 +01:00
parent df7aacd637
commit c4c2437dd4
7 changed files with 106 additions and 32 deletions

View File

@@ -524,7 +524,10 @@ void GitPlugin::startCommit()
return;
}
// Store repository for diff and the original list of
// files to be able to unstage files the user unchecks
m_submitRepository = data.panelInfo.repository;
m_submitOrigCommitFiles = GitSubmitEditor::statusListToFileList(data.commitFiles);
if (Git::Constants::debug)
qDebug() << Q_FUNC_INFO << data << commitTemplate;
@@ -614,7 +617,8 @@ bool GitPlugin::editorAboutToClose(Core::IEditor *iEditor)
m_gitClient->addAndCommit(m_submitRepository,
editor->panelData(),
m_changeTmpFile->fileName(),
fileList);
fileList,
m_submitOrigCommitFiles);
}
cleanChangeTmpFile();
return true;