git-status

git status parser


Keywords
git, status, python
License
Unlicense
Install
pip install git-status==2020.12.3

Documentation

Installation

$ [sudo] pip install git-status

Examples

>>> import git_status
>>> git_status.get(".")
 M  path/to/modified
 A  path/to/added
 D  path/to/deleted
 R  path/to/renamed
 ?? path/to/untracked

Status class

>>> status = git_status.Status(".")
>>> status.A
['path/to/added']

>>> status.M
['path/to/modified']

>>> status.D
['path/to/deleted']

>>> status.R
['path/to/renamed']

>>> status.untracked
['path/to/untracked']

readme42.com