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:226–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

224}
225
226void cbm_git_context_free(cbm_git_context_t *ctx) {
227 if (!ctx) {
228 return;
229 }
230 free(ctx->input_path);
231 free(ctx->worktree_root);
232 free(ctx->git_dir);
233 free(ctx->git_common_dir);
234 free(ctx->canonical_root);
235 free(ctx->branch);
236 free(ctx->branch_slug);
237 free(ctx->head_sha);
238 free(ctx->base_sha);
239 memset(ctx, 0, sizeof(*ctx));
240}
241
242int cbm_git_context_resolve(const char *path, cbm_git_context_t *out) {
243 if (!out) {

Callers 10

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

Calls

no outgoing calls

Tested by 1

th_gitctx_probe_threadFunction · 0.68