Git
- class lib.git.Git
Bases:
objectHandles calls to github
Attributes Summary
The git branch that is currently being used to execute Faceswap.
List of all available branches.
Obtain the output of git status for tracked files only
Methods Summary
checkout(branch)Checkout the requested branch
get_commits(count)Obtain the last commits to the repo
pull()Pull the current branch
Update all branches to track remote
Attributes Documentation
- branch
The git branch that is currently being used to execute Faceswap.
- Type:
str
- branches
List of all available branches.
- Type:
list[str]
- status
Obtain the output of git status for tracked files only
Methods Documentation
- checkout(branch: str) bool
Checkout the requested branch
- Parameters:
branch (str) – The branch to checkout
- Returns:
Trueif the branch was succesfully checkout out otherwiseFalse- Return type:
bool
- get_commits(count: int) list[str]
Obtain the last commits to the repo
- Parameters:
count (int) – The last number of commits to obtain
- Returns:
list of commits, or empty list if none found
- Return type:
list[str]
- pull() bool
Pull the current branch
- Returns:
Trueif pull is successful otherwiseFalse- Return type:
bool
- update_remote() bool
Update all branches to track remote
- Returns:
Trueif update was succesful otherwiseFalse- Return type:
bool
- property branch: str
The git branch that is currently being used to execute Faceswap.
- Type:
str
- property branches: list[str]
List of all available branches.
- Type:
list[str]
- checkout(branch: str) bool
Checkout the requested branch
- Parameters:
branch (str) – The branch to checkout
- Returns:
Trueif the branch was succesfully checkout out otherwiseFalse- Return type:
bool
- get_commits(count: int) list[str]
Obtain the last commits to the repo
- Parameters:
count (int) – The last number of commits to obtain
- Returns:
list of commits, or empty list if none found
- Return type:
list[str]
- pull() bool
Pull the current branch
- Returns:
Trueif pull is successful otherwiseFalse- Return type:
bool
- property status: list[str]
Obtain the output of git status for tracked files only
- update_remote() bool
Update all branches to track remote
- Returns:
Trueif update was succesful otherwiseFalse- Return type:
bool