| 1059 | }; |
| 1060 | |
| 1061 | static void add_one_commit(struct object_id *oid, struct rev_collect *revs) |
| 1062 | { |
| 1063 | struct commit *commit; |
| 1064 | |
| 1065 | if (is_null_oid(oid)) |
| 1066 | return; |
| 1067 | |
| 1068 | commit = lookup_commit(the_repository, oid); |
| 1069 | if (!commit || |
| 1070 | (commit->object.flags & TMP_MARK) || |
| 1071 | repo_parse_commit(the_repository, commit)) |
| 1072 | return; |
| 1073 | |
| 1074 | commit_stack_push(&revs->stack, commit); |
| 1075 | commit->object.flags |= TMP_MARK; |
| 1076 | } |
| 1077 | |
| 1078 | static int collect_one_reflog_ent(const char *refname UNUSED, |
| 1079 | struct object_id *ooid, struct object_id *noid, |
no test coverage detected