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

Function git_run

tests/test_git_context.c:42–46  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

40#ifndef _WIN32
41/* Run a git command inside dir, return 0 on success. */
42static int git_run(const char *dir, const char *args) {
43 char cmd[1024];
44 snprintf(cmd, sizeof(cmd), "git -C \"%s\" %s >/dev/null 2>&1", dir, args);
45 return system(cmd);
46}
47
48/* Create a minimal git repo at dir (init + empty commit so HEAD exists). */
49static int make_git_repo(const char *dir) {

Callers 2

make_git_repoFunction · 0.85
test_git_context.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected