Module settings

Module settings 

Source
Expand description

Graph generation settings.

The settings control how a branching graph is layed out. They are used in the print module when generating a visualization and persisted to disk in the config module.

These are the main structs

  • Settings The main settings object, which contains:
    • CommitFormat Format of the commit summary text to the right of the graph.
    • Characters The symbols to use when rendering a graph as text.
    • BranchSettings Control how a graph is formatted.
    • BranchOrder Determines the left-to-right order of branches.
    • MergePatterns Regex that extract branch names from a merge commit.

Structs§

BranchSettings
Settings defining branching models
BranchSettingsDef
Helper for reading BranchSettings, required due to RegEx.
Characters
The characters used for drawing text-based graphs.
ColorsDef
Helper for reading branch colors, required due to RegEx.
MergePatterns
RegEx patterns for extracting branch names from merge commit summaries.
RepoSettings
Repository settings for the branching model. Used to read repo’s git-graph.toml
Settings
Top-level settings

Enums§

BranchOrder
Ordering policy for branches in visual columns.