Class branch
Defined in File editorBranch.hpp
Class Documentation
-
class branch
Represents a Git branch and common branch operations.
Public Functions
-
std::vector<std::string> ShowExistBranch()
List all branches in the repository.
-
std::vector<commit> ShowExistCommitsOnBranch(const std::string &branchName)
Get commits that exist on the given branch.
-
bool SetBranch(const std::string &branchName)
Switch to the specified branch.
-
bool MakeNewFromHEAD(const std::string &newBranchName)
-
bool DeleteBranch(const std::string &branchName)
-
bool CheckoutThisHEAD()
-
bool MergeToBranch(const std::string &branchToMerge)
-
inline branch(git_repository *repo)
-
~branch()
-
template<>
std::string ToBranchRefName(const std::string &branchName)
-
template<>
std::string ToBranchRefName(const char *branchName)
-
std::vector<std::string> ShowExistBranch()