Git Feature

Git version control system support.

Usage

The Git Feature feature is required, and enabled by default.

To get a handle to the GitConfig instance, you can:

from medikit import require

git = require('git')

Currently, this feature is required for medikit to work.

To disable it, use:

git.disable()

It will avoid creating a .git repository, and won’t git add the modified files to git neither.

Even disabled, the feature will still manage the .gitignore file (can’t harm) and the VERSION variable, still based on git describe value. It means that you can ask medikit to not create a repo, but it should still be in a sub-directory or a git repository somewhere.

Configuration

class medikit.feature.git.GitConfig[source]
disable()[source]
enable()[source]
enabled

Implementation

class medikit.feature.git.GitFeature(dispatcher)[source]
Config

alias of GitConfig

on_end(event)[source]

Listens to medikit.on_end event (priority: 0)

on_make_generate(event)[source]

Listens to medikit.feature.make.on_generate event (priority: -99)

on_start(event)[source]

Listens to medikit.on_start event (priority: -100)