Git: Factorize ctor of Push to Gerrit

Change-Id: Ib668d0e29bac25bc2f78d8885b4dfa89c292b489
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Orgad Shaneh
2014-02-10 23:10:04 +02:00
committed by Orgad Shaneh
parent 6db52645b9
commit 517c357770
2 changed files with 58 additions and 51 deletions

View File

@@ -34,6 +34,12 @@
#include <QMultiMap>
#include <QDate>
namespace Git {
namespace Internal {
class GitClient;
}
}
namespace Gerrit {
namespace Internal {
@@ -66,14 +72,16 @@ private:
typedef QPair<QString, QDate> BranchDate;
typedef QMultiMap<QString, BranchDate> RemoteBranchesMap;
QString determineRemoteBranch();
void initRemoteBranches();
QString calculateChangeRange();
QString m_workingDir;
QString m_suggestedRemoteName;
QString m_suggestedRemoteBranch;
Ui::GerritPushDialog *m_ui;
RemoteBranchesMap m_remoteBranches;
bool m_localChangesFound;
bool m_valid;
Git::Internal::GitClient *m_client;
};