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

Function cbm_git_context_free

src/git/git_context.c:251–265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251void cbm_git_context_free(cbm_git_context_t *ctx) {
252 if (!ctx) {
253 return;
254 }
255 free(ctx->input_path);
256 free(ctx->worktree_root);
257 free(ctx->git_dir);
258 free(ctx->git_common_dir);
259 free(ctx->canonical_root);
260 free(ctx->branch);
261 free(ctx->branch_slug);
262 free(ctx->head_sha);
263 free(ctx->base_sha);
264 memset(ctx, 0, sizeof(*ctx));
265}
266
267int cbm_git_context_resolve(const char *path, cbm_git_context_t *out) {
268 if (!out) {

Callers 10

cbm_git_context_resolveFunction · 0.85
add_git_context_jsonFunction · 0.85
handle_repo_infoFunction · 0.85
cbm_pipeline_freeFunction · 0.85
test_git_context.cFile · 0.85
branch_resolve_agreesFunction · 0.85
th_gitctx_probe_threadFunction · 0.85
test_pipeline.cFile · 0.85

Calls

no outgoing calls

Tested by 2

branch_resolve_agreesFunction · 0.68
th_gitctx_probe_threadFunction · 0.68