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

Function git_run

tests/test_git_context.c:68–72  ·  view source on GitHub ↗

Run a git command inside dir, return 0 on success. */

Source from the content-addressed store, hash-verified

66#ifndef _WIN32
67/* Run a git command inside dir, return 0 on success. */
68static int git_run(const char *dir, const char *args) {
69 char cmd[1024];
70 snprintf(cmd, sizeof(cmd), "git -C \"%s\" %s >/dev/null 2>&1", dir, args);
71 return system(cmd);
72}
73
74/* Create a minimal git repo at dir (init + empty commit so HEAD exists). */
75static int make_git_repo(const char *dir) {

Callers 3

make_git_repoFunction · 0.85
make_env_isolation_treeFunction · 0.85
test_git_context.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected