| 804 | } |
| 805 | |
| 806 | static void clear_commit_marks_1(struct commit_list **plist, |
| 807 | struct commit *commit, unsigned int mark) |
| 808 | { |
| 809 | while (commit) { |
| 810 | struct commit_list *parents; |
| 811 | |
| 812 | if (!(mark & commit->object.flags)) |
| 813 | return; |
| 814 | |
| 815 | commit->object.flags &= ~mark; |
| 816 | |
| 817 | parents = commit->parents; |
| 818 | if (!parents) |
| 819 | return; |
| 820 | |
| 821 | while ((parents = parents->next)) { |
| 822 | if (parents->item->object.flags & mark) |
| 823 | commit_list_insert(parents->item, plist); |
| 824 | } |
| 825 | |
| 826 | commit = commit->parents->item; |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | void clear_commit_marks_many(size_t nr, struct commit **commit, unsigned int mark) |
| 831 | { |
no test coverage detected