| 292 | |
| 293 | |
| 294 | int 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 | |
| 315 | int git_open_log(GIT_LOG* handle, int argc, const char** argv) |
| 316 | { |
no outgoing calls
no test coverage detected