From 9654df9f1f92ab2c1548c10ca614a6ab82783ac4 Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Thu, 25 Apr 2013 13:04:45 +0200 Subject: 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 Reviewed-by: Orgad Shaneh --- src/plugins/git/commitdata.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/plugins/git/commitdata.cpp') diff --git a/src/plugins/git/commitdata.cpp b/src/plugins/git/commitdata.cpp index d17cf89d1c..129e256d9f 100644 --- a/src/plugins/git/commitdata.cpp +++ b/src/plugins/git/commitdata.cpp @@ -53,6 +53,8 @@ void GitSubmitEditorPanelData::clear() author.clear(); email.clear(); bypassHooks = false; + pushAction = CommitOnly; + hasRemotes = false; } QString GitSubmitEditorPanelData::authorString() const @@ -72,7 +74,8 @@ QString GitSubmitEditorPanelData::authorString() const QDebug operator<<(QDebug d, const GitSubmitEditorPanelData &data) { d.nospace() << " author:" << data.author << " email: " << data.email - << " bypass hooks: " << data.bypassHooks; + << " bypass hooks: " << data.bypassHooks + << " action after commit " << data.pushAction; return d; } -- cgit v1.2.1