Skip to main content

load_effective_config

Function load_effective_config 

Source
pub fn load_effective_config(cwd: &Path) -> Result<Config>
Expand description

Load configuration with the repo-local .cwconfig.json (if any) deep-merged over the global config. Layer order (lowest to highest precedence):

  1. Config::default()
  2. Global ~/.config/git-worktree-manager/config.json (or legacy path)
  3. Repo-local .cwconfig.json walked up from cwd

Returns Config::default() if no config files are found.