24#ifndef PROJECT_GIT_UTILS_H
25#define PROJECT_GIT_UTILS_H
53 static int CreateBranch( git_repository* aRepo,
const wxString& aBranchName );
63 static wxString
GetCurrentHash(
const wxString& aProjectFile,
bool aShort );
75static bool RemoveVCS( git_repository*& aRepo,
const wxString& aProjectPath = wxEmptyString,
76 bool aRemoveGitDir =
false, wxString* aErrors =
nullptr );
Utility class with helper functions for project level git operations.
static wxString GetCurrentHash(const wxString &aProjectFile, bool aShort)
Return the current HEAD commit hash for the repository containing aProjectFile.
static git_repository * GetRepositoryForFile(const char *aFilename)
Discover and open the repository that contains the given file.
static bool RemoveVCS(git_repository *&aRepo, const wxString &aProjectPath=wxEmptyString, bool aRemoveGitDir=false, wxString *aErrors=nullptr)
Remove version control from a directory by freeing the repository and optionally removing the ....
static int CreateBranch(git_repository *aRepo, const wxString &aBranchName)
Create a new branch based on HEAD.
#define APIEXPORT
Macros which export functions from a DLL/DSO.