Module config

Module config 

Source
Expand description

Branching model configurations.

In this module you will find functions to read and write branching model configurations on disk.

The branching models themselves are defined in module settings

Functionsยง

create_config
Creates the directory APP_DATA/git-graph/models if it does not exist, and writes the files for built-in branching models there.
get_available_models
Get models available in APP_DATA/git-graph/models.
get_model
Try to get the branch settings for a given model. If no model name is given, returns the branch settings set for the repo, or the default otherwise.
get_model_name
Get the currently set branching model for a repo.
set_model
Permanently sets the branching model for a repository