forked from qt-creator/qt-creator
Git: Refresh log entries on fixup commit
Change-Id: Icd14c8916dc006874b77aa922b3f1c6746e0549c Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
1fde77f6e8
commit
9f72e43fb1
@@ -176,6 +176,7 @@ void GitSubmitEditor::updateFileModel()
|
||||
CommitData data(m_commitType);
|
||||
if (client->getCommitData(m_workingDirectory, &commitTemplate, data, &errorMessage)) {
|
||||
setCommitData(data);
|
||||
submitEditorWidget()->refreshLog(m_workingDirectory);
|
||||
} else {
|
||||
VcsBase::VcsBaseOutputWindow::instance()->append(errorMessage);
|
||||
m_forceClose = true;
|
||||
|
||||
@@ -102,6 +102,12 @@ void GitSubmitEditorWidget::initialize(CommitType commitType, const QString &rep
|
||||
insertTopWidget(m_gitSubmitPanel);
|
||||
}
|
||||
|
||||
void GitSubmitEditorWidget::refreshLog(const QString &repository)
|
||||
{
|
||||
if (m_logChangeWidget)
|
||||
m_logChangeWidget->init(repository, QString(), false);
|
||||
}
|
||||
|
||||
GitSubmitEditorPanelData GitSubmitEditorWidget::panelData() const
|
||||
{
|
||||
GitSubmitEditorPanelData rc;
|
||||
|
||||
@@ -71,6 +71,7 @@ public:
|
||||
QString amendSHA1() const;
|
||||
void setHasUnmerged(bool e);
|
||||
void initialize(CommitType commitType, const QString &repository);
|
||||
void refreshLog(const QString &repository);
|
||||
|
||||
protected:
|
||||
bool canSubmit() const;
|
||||
|
||||
Reference in New Issue
Block a user