git-meta’s documentation
- Authors:
Jules David <jules@onada.fr> Tristan Gregoire <tristan@onada.fr>
- Source code:
- Bug tracker:
- License:
BSD
- Generated:
May 03, 2026
- Version:
0.4.1
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
- discover()[source]
Scan the subfolders to discover repositories
The root folder can be defined with the
meta.scanrootfield in your .gitconfig file. If not defined, the default scanroot is $HOME.
- scan(filter_status=None)[source]
Scan all the repositories in the database for their statuses
- Parameters:
filter_status (str) – Only return repositiries having the given status. Usable status are “OK”, “KO”, “remote”, “NOK” and “all”
- terminal(filter_status=None)[source]
Open a terminal on each repository selected by the filter
see
Meta.scan()for details on filter_status
- class gitmeta.Repo(path: str | ~os.PathLike[str] | None = None, odbt: ~typing.Type[~gitdb.db.loose.LooseObjectDB] = <class 'git.db.GitCmdObjectDB'>, search_parent_directories: bool = False, expand_vars: bool = True)[source]
Bases:
RepoClass 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:
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.