Git: Allow direct push after commit

Git commit dialog: Added a drop-down menu to the commit button to
execute "git push" or open the "Push to Gerrit" dialog directly after
a commit or amend.

Task-number: QTCREATORBUG-8854
Change-Id: I00ff8f816d1768e0cdaf6929126b55826788e578
Reviewed-by: Petar Perisin <petar.perisin@gmail.com>
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Andre Hartmann
2013-04-25 13:04:45 +02:00
committed by André Hartmann
parent 02825b5894
commit 9654df9f1f
11 changed files with 97 additions and 9 deletions

View File

@@ -32,6 +32,7 @@
#include "ui_gitsubmitpanel.h"
#include "gitsettings.h"
#include "commitdata.h"
#include <texteditor/syntaxhighlighter.h>
#include <vcsbase/submiteditorwidget.h>
@@ -77,18 +78,23 @@ public:
protected:
bool canSubmit() const;
QString cleanupDescription(const QString &) const;
QString commitName() const;
signals:
void show(const QString &commit);
private slots:
void authorInformationChanged();
void commitOnlySlot();
void commitAndPushSlot();
void commitAndPushToGerritSlot();
private:
bool emailIsValid() const;
void setPanelData(const GitSubmitEditorPanelData &data);
void setPanelInfo(const GitSubmitEditorPanelInfo &info);
PushAction m_pushAction;
QWidget *m_gitSubmitPanel;
LogChangeWidget *m_logChangeWidget;
Ui::GitSubmitPanel m_gitSubmitPanelUi;