| 234 | } |
| 235 | |
| 236 | static void show_commit(struct commit *commit, void *data) |
| 237 | { |
| 238 | struct rev_list_info *info = data; |
| 239 | struct rev_info *revs = info->revs; |
| 240 | |
| 241 | display_progress(progress, ++progress_counter); |
| 242 | |
| 243 | if (revs->do_not_die_on_missing_objects && |
| 244 | oidset_contains(&revs->missing_commits, &commit->object.oid)) { |
| 245 | finish_object__ma(&commit->object, NULL); |
| 246 | return; |
| 247 | } |
| 248 | |
| 249 | if (show_disk_usage) |
| 250 | total_disk_usage += get_object_disk_usage(&commit->object); |
| 251 | |
| 252 | if (info->flags & REV_LIST_QUIET) { |
| 253 | finish_commit(commit); |
| 254 | return; |
| 255 | } |
| 256 | |
| 257 | graph_show_commit(revs->graph); |
| 258 | |
| 259 | if (revs->count) { |
| 260 | if (commit->object.flags & PATCHSAME) |
| 261 | revs->count_same++; |
| 262 | else if (commit->object.flags & SYMMETRIC_LEFT) |
| 263 | revs->count_left++; |
| 264 | else |
| 265 | revs->count_right++; |
| 266 | finish_commit(commit); |
| 267 | return; |
| 268 | } |
| 269 | |
| 270 | if (info->show_timestamp) |
| 271 | printf("%"PRItime" ", commit->date); |
| 272 | if (info->header_prefix) |
| 273 | fputs(info->header_prefix, stdout); |
| 274 | |
| 275 | if (revs->include_header) { |
| 276 | if (!revs->graph && line_term) |
| 277 | fputs(get_revision_mark(revs, commit), stdout); |
| 278 | if (revs->abbrev_commit && revs->abbrev) |
| 279 | fputs(repo_find_unique_abbrev(the_repository, &commit->object.oid, revs->abbrev), |
| 280 | stdout); |
| 281 | else |
| 282 | fputs(oid_to_hex(&commit->object.oid), stdout); |
| 283 | |
| 284 | if (!line_term) { |
| 285 | if (commit->object.flags & BOUNDARY) |
| 286 | printf("%cboundary=yes", info_term); |
| 287 | } |
| 288 | } |
| 289 | if (revs->print_parents) { |
| 290 | struct commit_list *parents = commit->parents; |
| 291 | while (parents) { |
| 292 | printf(" %s", oid_to_hex(&parents->item->object.oid)); |
| 293 | parents = parents->next; |
nothing calls this directly
no test coverage detected