Added utility functions.
This commit is contained in:
parent
aeae9002fe
commit
00f5216a9f
@ -17,19 +17,28 @@ class GitClient : public QObject {
|
|||||||
QString const m_branchName;
|
QString const m_branchName;
|
||||||
QString const m_customerRepository;
|
QString const m_customerRepository;
|
||||||
|
|
||||||
std::optional<QString> gitCloneRepository(QString const &repPath);
|
bool copyGitConfigFromMaster();
|
||||||
bool gitCheckout(QString const &branchName);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
explicit GitClient(QString const &workingDirectory = QCoreApplication::applicationDirPath(),
|
explicit GitClient(QString const &repositoryPath,
|
||||||
QString const &branchName = "master");
|
QString const &customerId,
|
||||||
|
QString const &workingDirectory = QCoreApplication::applicationDirPath(),
|
||||||
|
QString const &branchName = "master",
|
||||||
|
QObject *parent = 0);
|
||||||
|
|
||||||
void setWorkingDirectory(QString const &workingDirectory);
|
bool gitCloneCustomerRepository();
|
||||||
QString workingDirectory() const;
|
bool gitCheckoutBranch();
|
||||||
void setBranchName(QString const &branchName);
|
|
||||||
QString branchName() const;
|
|
||||||
|
|
||||||
std::optional<QString> gitCloneBranch(QString const &repPath, QString const &branchName);
|
QString const workingDirectory() const { return m_workingDirectory; }
|
||||||
|
QString workingDirectory() { return m_workingDirectory; }
|
||||||
|
|
||||||
|
QString const branchName() const { return m_branchName; }
|
||||||
|
QString branchName() { return m_branchName; }
|
||||||
|
|
||||||
|
QString repositoryPath() { return m_repositoryPath; }
|
||||||
|
QString const repositoryPath() const { return m_repositoryPath; }
|
||||||
|
|
||||||
|
bool gitCloneAndCheckoutBranch();
|
||||||
|
|
||||||
std::optional<QString> gitFetch();
|
std::optional<QString> gitFetch();
|
||||||
bool gitFetchAndDiff();
|
bool gitFetchAndDiff();
|
||||||
|
Loading…
Reference in New Issue
Block a user