pub fn select_adapter(
project_root: &Path,
config: &SubmitConfig,
) -> Box<dyn SourceAdapter>Expand description
Select an adapter by name from configuration, with auto-detection fallback.
Resolution order:
- If
config.adapteris explicitly set to a known built-in adapter name, use it. - If
config.adapteris unknown, check for an external VCS plugin with that name. - If
config.adapteris “none” (the default), auto-detect from the project root. - If auto-detection fails, fall back to NoneAdapter.
§15 enforcement is applied to all loaded adapters.