42std::string
GetCommitHash(
const std::string& aPath =
".",
int aLength = 40 );
51std::string
GetNearestTag(
const std::string& aMatch =
"",
bool aAnyTags =
false );
68bool IsDirty(
bool aIncludeUntracked =
false );
76std::string
GetAuthor(
const std::string& aPath =
"." );
92std::string
GetCommitter(
const std::string& aPath =
"." );
wxString GetCommitHash()
Get the commit hash as a string.
CONTEXT_PATH_SCOPE(const CONTEXT_PATH_SCOPE &)=delete
CONTEXT_PATH_SCOPE(const wxString &aPath)
CONTEXT_PATH_SCOPE & operator=(const CONTEXT_PATH_SCOPE &)=delete
VCS (Version Control System) utility functions for text evaluation.
std::string GetAuthor(const std::string &aPath)
Get the author name of the HEAD commit.
bool IsDirty(bool aIncludeUntracked)
Check if the repository has uncommitted changes.
wxString GetContextPath()
Return the current context path for repo-scoped VCS queries.
std::string GetCommitterEmail(const std::string &aPath)
Get the committer email of the HEAD commit.
std::string GetCommitDate(const std::string &aPath)
Get the commit date of the HEAD commit as a timestamp string.
std::string GetAuthorEmail(const std::string &aPath)
Get the author email of the HEAD commit.
void SetContextPath(const wxString &aPath)
Set the filesystem path used as the repository-discovery starting point for repo-scoped VCS queries (...
std::string GetCommitter(const std::string &aPath)
Get the committer name of the HEAD commit.
std::string GetBranch()
Get the current branch name.
std::string GetNearestTag(const std::string &aMatch, bool aAnyTags)
Get the nearest tag/label from HEAD.
int64_t GetCommitTimestamp(const std::string &aPath)
Get the commit timestamp (Unix time) of the HEAD commit.
int GetDistanceFromTag(const std::string &aMatch, bool aAnyTags)
Get the number of commits since the nearest matching tag.