MCPcopy Create free account
hub / github.com/RomanHotsiy/commitgpt / load

Function load

config_storage.ts:45–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44let cache = null;
45function load() {
46 if (cache) return cache;
47 ensureGlobal();
48 const global = loadGlobal();
49 const local = loadLocal();
50 cache = { ...defaultConfig, ...global, ...local };
51 return cache;
52}
53
54function assertTempValid(t: string) {
55 // should include {{diff}}

Callers 1

getConfigFunction · 0.85

Calls 3

ensureGlobalFunction · 0.85
loadGlobalFunction · 0.85
loadLocalFunction · 0.85

Tested by

no test coverage detected