multipackage.utilities.git module¶
Basic git operations.
Summary¶
Classes:
GITRepository |
Helper class for git repository functionality. |
Functions:
extract_github_name |
Extract a github name from a remote URL. |
Reference¶
-
class
multipackage.utilities.git.
GITRepository
(path)[source]¶ Bases:
object
Helper class for git repository functionality.
Parameters: path (str) – The path to a git repository folder. -
remote
(name='origin')[source]¶ Get the remote origin URL.
Parameters: name (str) – The name of the remote to get. Returns: The remote URL. Return type: str
-
github_name
(name='origin')[source]¶ Get the user/org and repo name for a github hosted repo.
Parameters: name (str) – The name of the remote to get. Returns: The github org/username and repo name. Return type: (str, str)
-