Git-related utility functions.
bmibabel.git.git_clone(url, git=None, dir='.', branch='master')[source]¶Clone a git repository.
| Parameters: | url : str
git : str, optional
dir : str, optional
branch : str, optional
|
|---|
bmibabel.git.git_clone_or_update(url, dir='.', branch='master', git=None)[source]¶Clone (or update) a git repository .
If the repository doesn’t not exists locally, clone it from url. Otherwise, simply update it.
| Parameters: | url : str
git : str, optional
dir : str, optional
branch : str, optional
|
|---|
bmibabel.git.git_pull(dir='.', branch='master', git=None)[source]¶Pull from a git repository.
| Parameters: | git : str, optional
dir : str, optional
branch : str, optional
|
|---|
bmibabel.git.git_repo_name(url)[source]¶Get the name of a git repository.
| Parameters: | url : str
|
|---|---|
| Returns: | str
|