cvedia::rt::GitRepository¶
Represents a git repository. More...
#include <gitapi.h>
Public Functions¶
| Name | |
|---|---|
| GitRepository() =default | |
| ~GitRepository() =default | |
| void | free() Frees libgit2-allocated memory. |
| GitRepository(GitRepository const & ) =default | |
| GitRepository & | operator=(GitRepository const & ) =default |
| GitRepository(GitRepository && ) =default | |
| GitRepository & | operator=(GitRepository && ) =default |
Public Attributes¶
| Name | |
|---|---|
| git_repository * | repository_ |
| std::unordered_map< std::string, std::unordered_set< std::string > > | tags_ |
| std::unordered_map< std::string, std::string > | tagTargets_ |
| std::string | path_ |
| std::string | uri_ |
| bool | isRemote_ |
Detailed Description¶
struct cvedia::rt::GitRepository;
Represents a git repository.
Note: remember to call free() when done using the structure
Public Functions Documentation¶
function GitRepository¶
GitRepository() =default
function ~GitRepository¶
~GitRepository() =default
function free¶
void free()
Frees libgit2-allocated memory.
This needs to be implicitly called to avoid leaks
function GitRepository¶
GitRepository(
GitRepository const &
) =default
function operator=¶
GitRepository & operator=(
GitRepository const &
) =default
function GitRepository¶
GitRepository(
GitRepository &&
) =default
function operator=¶
GitRepository & operator=(
GitRepository &&
) =default
Public Attributes Documentation¶
variable repository_¶
git_repository * repository_ = nullptr;
variable tags_¶
std::unordered_map< std::string, std::unordered_set< std::string > > tags_;
variable tagTargets_¶
std::unordered_map< std::string, std::string > tagTargets_;
variable path_¶
std::string path_;
variable uri_¶
std::string uri_;
variable isRemote_¶
bool isRemote_ = false;