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

Source from the content-addressed store, hash-verified

234}
235
236void cbm_git_context_free(cbm_git_context_t *ctx) {
237 if (!ctx) {
238 return;
239 }
240 free(ctx->input_path);
241 free(ctx->worktree_root);
242 free(ctx->git_dir);
243 free(ctx->git_common_dir);
244 free(ctx->canonical_root);
245 free(ctx->branch);
246 free(ctx->branch_slug);
247 free(ctx->head_sha);
248 free(ctx->base_sha);
249 memset(ctx, 0, sizeof(*ctx));
250}
251
252int cbm_git_context_resolve(const char *path, cbm_git_context_t *out) {
253 if (!out) {

Callers 7

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
th_gitctx_probe_threadFunction · 0.85
test_pipeline.cFile · 0.85

Calls

no outgoing calls

Tested by 1

th_gitctx_probe_threadFunction · 0.68