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

Function run_git

tests/test_lang_contract.c:1838–1842  ·  view source on GitHub ↗

Run "git -C "; direct git invocation (no shell builtins) so it * works under both POSIX shells and cmd.exe. Returns the command exit status. */

Source from the content-addressed store, hash-verified

1836/* Run "git -C <dir> <args>"; direct git invocation (no shell builtins) so it
1837 * works under both POSIX shells and cmd.exe. Returns the command exit status. */
1838static int run_git(const char *dir, const char *args) {
1839 char cmd[1024];
1840 snprintf(cmd, sizeof(cmd), "git -C \"%s\" %s", dir, args);
1841 return system(cmd);
1842}
1843
1844/* FILE_CHANGES_WITH — git co-change coupling: two files that change together
1845 * across >=3 commits (coupling >= 0.3). The standard harness indexes a plain

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected