25 lines
547 B
C
25 lines
547 B
C
|
#ifndef GIT_LIBRARY_H_INCLUDED
|
||
|
#define GIT_LIBRARY_H_INCLUDED
|
||
|
|
||
|
#include <QByteArray>
|
||
|
#include <QString>
|
||
|
#include <QJsonDocument>
|
||
|
#include <QJsonArray>
|
||
|
#include <QJsonObject>
|
||
|
#include <QDir>
|
||
|
#include <git2.h>
|
||
|
|
||
|
class GitLibrary {
|
||
|
public:
|
||
|
static int Init();
|
||
|
static int Shutdown();
|
||
|
static int CloneRepository(char const *url, char const *localRepoName);
|
||
|
static int CheckoutRepository(char const *localRepoName, char const *branchName);
|
||
|
|
||
|
|
||
|
// explicit GitLibrary();
|
||
|
// ~GitLibrary();
|
||
|
};
|
||
|
|
||
|
#endif // #define GIT_LIBRARY_H_INCLUDED
|