41 #ifndef __OPENFLUID_UIWARESDEV_GITUIPROXY_HPP__
42 #define __OPENFLUID_UIWARESDEV_GITUIPROXY_HPP__
55 namespace openfluid {
namespace ui {
namespace waresdev {
71 TRACKED, UNTRACKED, IGNORED, CONFLICT, ADDED, DELETED, MODIFIED
76 bool m_IsDirty =
false;
83 bool m_IsGitTracked =
false;
85 QString m_BranchName =
"";
93 QProcess* mp_Process =
nullptr;
97 static void findGitProgram();
102 void processStandardOutput();
104 void processErrorOutput();
106 void processErrorOutputAsInfo();
111 void info(
const QString& Message);
125 const QString& Username =
"",
const QString& Password =
"",
126 bool SslNoVerify =
false,
const QString& WorkingDirectory =
"",
bool UsernameViaEnv =
false);
128 bool addSubmodule(
const QString& FromUrl,
const QString& ToPath,
const QString& LocalGitRepoPath,
129 const QString& Username =
"",
const QString& Password =
"",
130 bool SslNoVerify =
false);
134 bool clone(
const QString& FromUrl,
const QString& ToPath,
135 const QString& Username =
"",
const QString& Password =
"",
136 bool SslNoVerify =
false,
const QString& LocalGitRepoPath =
"",
bool WithoutVersioning =
false);
138 bool checkout(
const QString&
Path,
const QString& BranchName,
bool New=
false);
148 QString
init(
const QString& WorkingDirectory);
Definition: GitUIProxy.hpp:64
bool addSubmodule(const QString &FromUrl, const QString &ToPath, const QString &LocalGitRepoPath, const QString &Username="", const QString &Password="", bool SslNoVerify=false)
QString init(const QString &WorkingDirectory)
void error(const QString &Message)
bool launchAuthCommand(QStringList Args, const QString &FromUrl, const QString &ToPath, const QString &Username="", const QString &Password="", bool SslNoVerify=false, const QString &WorkingDirectory="", bool UsernameViaEnv=false)
QString logHtml(const QString &Path, bool WithColorCodes)
void info(const QString &Message)
std::pair< int, QString > launchLocalCommand(const QString &Path, QStringList Args, bool RequiringDotGit=true)
bool checkout(const QString &Path, const QString &BranchName, bool New=false)
static QString getCurrentOpenFLUIDBranchName()
QString statusHtml(const QString &Path, bool WithColorCodes)
TreeStatusInfo status(const QString &Path)
FileStatus
Definition: GitUIProxy.hpp:70
bool clone(const QString &FromUrl, const QString &ToPath, const QString &Username="", const QString &Password="", bool SslNoVerify=false, const QString &LocalGitRepoPath="", bool WithoutVersioning=false)
std::pair< bool, QString > removeSubmodule(const QString &Path, const QString &SubmodulePath)
Definition: GitProxy.hpp:56
#define OPENFLUID_API
Definition: dllexport.hpp:86
bool OPENFLUID_API forceRemove(const QString &Path)
bool cleanModuleDir(QString RootPath, openfluid::tools::FilesystemPath DestSubPath)
Definition: ApplicationException.hpp:47
Definition: GitUIProxy.hpp:75
Definition: GitUIProxy.hpp:82
QMap< QString, FileStatusInfo > m_FileStatusByTreePath
Definition: GitUIProxy.hpp:87