24#ifndef PROJECT_GIT_UTILS_H
25#define PROJECT_GIT_UTILS_H
52 static int CreateBranch( git_repository* aRepo,
const wxString& aBranchName );
64static bool RemoveVCS( git_repository*& aRepo,
const wxString& aProjectPath = wxEmptyString,
65 bool aRemoveGitDir =
false, wxString* aErrors =
nullptr );
Utility class with helper functions for project level git operations.
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.