51std::string
GetCommitHash(
const std::string& aPath =
".",
int aLength = 40 );
60std::string
GetNearestTag(
const std::string& aMatch =
"",
bool aAnyTags =
false );
77bool IsDirty(
bool aIncludeUntracked =
false );
85std::string
GetAuthor(
const std::string& aPath =
"." );
101std::string
GetCommitter(
const std::string& aPath =
"." );
wxString GetCommitHash()
Get the commit hash as a string.
std::tuple< VCS_QUERY, wxString, std::string, int, bool > VCS_KEY
Query, absolute path (Git directory for HEAD), selector or pattern, options, and whether the context ...
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.
bool GetContextIsFile()
File/directory classification captured when the current context was activated.
TEXT_EVAL::ENVIRONMENT::VCS_VALUE ReadSource(const TEXT_EVAL::ENVIRONMENT::VCS_KEY &aKey)
Re-read an owned query descriptor using any active frame memo.
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 for repository discovery and relative file 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.