commons
sub-package¶
Submodules¶
git_info
module¶
-
class
redata.commons.git_info.
GitInfo
(input_path)¶ Bases:
object
Provides
git
repo information- Parameters
input_path (
str
) – Full path containing the.git
contents- Variables
input_path – Full path containing the
.git
contentshead_path – Full path of the
.git
HEADbranch – Active branch name
commit – Full hash
short_commit – short hash commit
-
get_active_branch_name
()¶ Retrieve active branch name
- Return type
str
-
get_latest_commit
()¶ Retrieve latest commit hash
- Return type
Tuple
[str
,str
]