summaryrefslogtreecommitdiff
path: root/src/plugins/git/commitdata.h
diff options
context:
space:
mode:
authorAndre Hartmann <aha_1980@gmx.de>2013-04-25 13:04:45 +0200
committerAndré Hartmann <aha_1980@gmx.de>2013-09-30 19:20:11 +0200
commit9654df9f1f92ab2c1548c10ca614a6ab82783ac4 (patch)
tree108ea87e710651322fc7bcdd86555f8b16ba7403 /src/plugins/git/commitdata.h
parent02825b589443836eff985e61a03af8be28a2f17d (diff)
downloadqt-creator-9654df9f1f92ab2c1548c10ca614a6ab82783ac4.tar.gz
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>
Diffstat (limited to 'src/plugins/git/commitdata.h')
-rw-r--r--src/plugins/git/commitdata.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/git/commitdata.h b/src/plugins/git/commitdata.h
index 6688843dd5..824f9dfe5d 100644
--- a/src/plugins/git/commitdata.h
+++ b/src/plugins/git/commitdata.h
@@ -52,6 +52,12 @@ struct GitSubmitEditorPanelInfo
QDebug operator<<(QDebug d, const GitSubmitEditorPanelInfo &);
+enum PushAction {
+ CommitOnly,
+ CommitAndPush,
+ CommitAndPushToGerrit
+};
+
struct GitSubmitEditorPanelData
{
void clear();
@@ -61,6 +67,8 @@ struct GitSubmitEditorPanelData
QString author;
QString email;
bool bypassHooks;
+ PushAction pushAction;
+ bool hasRemotes;
};
QDebug operator<<(QDebug d, const GitSubmitEditorPanelData &);