|
KiCad PCB EDA Suite
|
VCS (Version Control System) utility functions for text evaluation. More...
Functions | |
| std::string | GetCommitHash (const std::string &aPath=".", int aLength=40) |
| Get the current HEAD commit identifier (hash). | |
| std::string | GetNearestTag (const std::string &aMatch="", bool aAnyTags=false) |
| Get the nearest tag/label from HEAD. | |
| int | GetDistanceFromTag (const std::string &aMatch="", bool aAnyTags=false) |
| Get the number of commits since the nearest matching tag. | |
| bool | IsDirty (bool aIncludeUntracked=false) |
| Check if the repository has uncommitted changes. | |
| std::string | GetAuthor (const std::string &aPath=".") |
| Get the author name of the HEAD commit. | |
| std::string | GetAuthorEmail (const std::string &aPath=".") |
| Get the author email of the HEAD commit. | |
| std::string | GetCommitter (const std::string &aPath=".") |
| Get the committer name of the HEAD commit. | |
| std::string | GetCommitterEmail (const std::string &aPath=".") |
| Get the committer email of the HEAD commit. | |
| std::string | GetBranch () |
| Get the current branch name. | |
| int64_t | GetCommitTimestamp (const std::string &aPath=".") |
| Get the commit timestamp (Unix time) of the HEAD commit. | |
| std::string | GetCommitDate (const std::string &aPath=".") |
| Get the commit date of the HEAD commit as a timestamp string. | |
VCS (Version Control System) utility functions for text evaluation.
These functions provide generic VCS operations that are currently implemented for Git repositories, but can be extended to support other VCS systems in the future.
| std::string TEXT_EVAL_VCS::GetAuthor | ( | const std::string & | aPath = "." | ) |
Get the author name of the HEAD commit.
| aPath | Optional file path for file-specific queries. |
Definition at line 323 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| std::string TEXT_EVAL_VCS::GetAuthorEmail | ( | const std::string & | aPath = "." | ) |
Get the author email of the HEAD commit.
| aPath | Optional file path for file-specific queries. |
Definition at line 328 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| std::string TEXT_EVAL_VCS::GetBranch | ( | ) |
Get the current branch name.
Definition at line 343 of file text_eval_vcs.cpp.
References KIGIT_COMMON::GetCurrentBranchName().
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| std::string TEXT_EVAL_VCS::GetCommitDate | ( | const std::string & | aPath = "." | ) |
Get the commit date of the HEAD commit as a timestamp string.
| aPath | Optional file path for file-specific queries. |
Definition at line 383 of file text_eval_vcs.cpp.
References GetCommitTimestamp().
| std::string TEXT_EVAL_VCS::GetCommitHash | ( | const std::string & | aPath = ".", |
| int | aLength = 40 ) |
Get the current HEAD commit identifier (hash).
| aPath | Optional file path for file-specific queries. Defaults to "." for repo HEAD. |
| aLength | Optional hash length (4-40). Defaults to 40 for full SHA-1. |
Definition at line 266 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| std::string TEXT_EVAL_VCS::GetCommitter | ( | const std::string & | aPath = "." | ) |
Get the committer name of the HEAD commit.
| aPath | Optional file path for file-specific queries. |
Definition at line 333 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| std::string TEXT_EVAL_VCS::GetCommitterEmail | ( | const std::string & | aPath = "." | ) |
Get the committer email of the HEAD commit.
| aPath | Optional file path for file-specific queries. |
Definition at line 338 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| int64_t TEXT_EVAL_VCS::GetCommitTimestamp | ( | const std::string & | aPath = "." | ) |
Get the commit timestamp (Unix time) of the HEAD commit.
| aPath | Optional file path for file-specific queries. |
Definition at line 356 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction(), and GetCommitDate().
| int TEXT_EVAL_VCS::GetDistanceFromTag | ( | const std::string & | aMatch = "", |
| bool | aAnyTags = false ) |
Get the number of commits since the nearest matching tag.
| aMatch | Optional glob pattern to filter tags. |
| aAnyTags | If true, includes lightweight tags. If false, annotated tags only. |
Definition at line 293 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| std::string TEXT_EVAL_VCS::GetNearestTag | ( | const std::string & | aMatch = "", |
| bool | aAnyTags = false ) |
Get the nearest tag/label from HEAD.
| aMatch | Optional glob pattern to filter tags. Defaults to "*" for all tags. |
| aAnyTags | If true, includes lightweight tags. If false, annotated tags only. |
Definition at line 288 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().
| bool TEXT_EVAL_VCS::IsDirty | ( | bool | aIncludeUntracked = false | ) |
Check if the repository has uncommitted changes.
| aIncludeUntracked | If true, untracked files count as dirty. If false, only staged/modified. |
Definition at line 298 of file text_eval_vcs.cpp.
Referenced by calc_parser::EVAL_VISITOR::evaluateFunction().