Skip to main content

load

Function load 

Source
pub fn load(repo_root: Option<&Path>) -> Result<GitmojiMap>
Expand description

Load .gwm.toml’s [gitmoji] block from the given repo root and merge it on top of the built-in defaults. Returns the built-in defaults verbatim when the file is missing or the block is absent.

repo_root is Option so callers without a workdir handle (e.g. the gwm commit-prefix --branch <name> path, which doesn’t need to open a repo) can still get the defaults.