semvec/pypi-packages huggingface dataset:
gitinclude 0.3.1
literalinclude from git repository.
License: Apache-2.0
Keywords: sphinx,sphinxcontrib

# sphinxcontrib-git_include

<https://pypi.org/project/gitinclude/>

`literalinclude` from git repository.

* using ~~`git cat-file -p {rev}:{path_to_file}`~~
* using `git show {rev}:{path_to_file}`

## install

```
> pip install gitinclude
```

## Sample 

<https://ousttrue.github.io/sphinxcontrib-gitinclude/>

### Sphinx: conf.py

```py
extensions = [
    "gitinclude",
]
```

### Sphinx: usage

`myst`

```
``{gitinclude} HEAD^ gitinclude/__init__.py
:language: python
:linenos:
``
```