git-meta’s documentation¶
Authors: | Jules David <jules@onada.fr> Tristan Gregoire <tristan@onada.fr> |
---|---|
Source code: | github.com project |
Bug tracker: | github.com issues |
License: | BSD |
Generated: | Dec 20, 2020 |
Version: | 0.2 |
git-meta allows you to get a clear picture of all your local repository states.
It is based on the gitpython library
API¶
-
class
gitmeta.
Meta
[source]¶ Class handling the repositories database
-
class
gitmeta.
Repo
(path=None, odbt=<class 'git.db.GitCmdObjectDB'>, search_parent_directories=False, expand_vars=True)[source]¶ Bases:
git.repo.base.Repo
Class representing a repository.
Allows to perform common git commands
-
has_remote
()[source]¶ Returns: - True if the repository has a remote branch defined for at least
- local branch
Return type: bool
-
Tests¶
git-meta tests are located in the test/ folder. They are powered by pytest.
In order to launch the test series, you only have to type the command :
$ py.test
in the base folder.