basicgit
¶
simple Git module, where needed via powershell
Module Contents¶
Functions¶
|
run a external (git) command in the repo's folder and deal with some of the errors |
|
get the most recent git version tag of a local repo" |
|
get the most recent git version tag of a local repo" |
|
fetches a repo |
|
pull a repo origin into master |
- basicgit._run_git(cmd: str, repo: str = None, expect_stderr=False)¶
run a external (git) command in the repo’s folder and deal with some of the errors
- Parameters
cmd (str) –
repo (str) –
- basicgit.get_tag(repo: str = None) Union[str, None] ¶
get the most recent git version tag of a local repo” repo should be in the form of : repo = “./micropython”
returns the tag or None
- Parameters
repo (str) –
- Return type
Union[str, None]
- basicgit.checkout_tag(tag: str, repo: str = None) bool ¶
get the most recent git version tag of a local repo” repo should be in the form of : repo = “../micropython/.git”
returns the tag or None
- Parameters
tag (str) –
repo (str) –
- Return type
bool
- basicgit.fetch(repo: str) bool ¶
fetches a repo repo should be in the form of : repo = “../micropython/.git”
returns True on success
- Parameters
repo (str) –
- Return type
bool
- basicgit.pull(repo: str, branch='master') bool ¶
pull a repo origin into master repo should be in the form of : repo = “../micropython/.git”
returns True on success
- Parameters
repo (str) –
- Return type
bool