MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / save_git_env

Function save_git_env

tests/test_discover.c:16–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14} git_env_snapshot_t;
15
16static git_env_snapshot_t save_git_env(void) {
17 git_env_snapshot_t snapshot = {0};
18 const char *home = getenv("HOME");
19 const char *xdg = getenv("XDG_CONFIG_HOME");
20 snapshot.home = home ? cbm_strdup(home) : NULL;
21 snapshot.xdg_config_home = xdg ? cbm_strdup(xdg) : NULL;
22 return snapshot;
23}
24
25static void restore_git_env(git_env_snapshot_t *snapshot) {
26 if (snapshot->home) {

Callers 1

test_discover.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected