MCPcopy Create free account
hub / github.com/TortoiseGit/TortoiseGit / git_free_commit

Function git_free_commit

ext/gitdll/gitdll.c:294–313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

292
293
294int git_free_commit(GIT_COMMIT *commit)
295{
296 struct commit *p = commit->m_pGitCommit;
297
298 if( p->parents)
299 free_commit_list(p->parents);
300
301 if (p->maybe_tree)
302 free_tree_buffer(p->maybe_tree);
303
304 free_commit_buffer(the_repository->parsed_objects, p);
305 free((void*)commit->buffer);
306
307 p->object.parsed = 0;
308 p->parents = 0;
309 p->maybe_tree = NULL;
310
311 memset(commit,0,sizeof(GIT_COMMIT));
312 return 0;
313}
314
315int git_open_log(GIT_LOG* handle, int argc, const char** argv)
316{

Callers 7

GetParentFromHashMethod · 0.85
SafeGetSimpleListMethod · 0.85
SafeFetchFullInfoMethod · 0.85
LogThreadMethod · 0.85
ParserFromLogMethod · 0.85
FillMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected