MCPcopy
hub / github.com/di-sukharev/opencommit / set_missing_default_values_default

Function set_missing_default_values_default

out/cli.cjs:87075–87087  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

87073 ];
87074 const globalConfig = getGlobalConfig();
87075 const configToOverride = { ...globalConfig };
87076 for (const key of obsoleteKeys) delete configToOverride[key];
87077 setGlobalConfig(configToOverride);
87078}
87079
87080// src/migrations/02_set_missing_default_values.ts
87081function set_missing_default_values_default() {
87082 const setDefaultConfigValues = (config8) => {
87083 const entriesToSet = [];
87084 for (const entry of Object.entries(DEFAULT_CONFIG)) {
87085 const [key, _value] = entry;
87086 if (config8[key] === "undefined" || config8[key] === void 0)
87087 entriesToSet.push(entry);
87088 }
87089 if (entriesToSet.length > 0) setConfig(entriesToSet);
87090 console.log(entriesToSet);

Callers

nothing calls this directly

Calls 2

setDefaultConfigValuesFunction · 0.70
getGlobalConfigFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…