MCPcopy Index your code
hub / github.com/git/git / clear_commit_marks_1

Function clear_commit_marks_1

commit.c:806–828  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

804}
805
806static 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
830void clear_commit_marks_many(size_t nr, struct commit **commit, unsigned int mark)
831{

Callers 1

clear_commit_marksFunction · 0.85

Calls 1

commit_list_insertFunction · 0.85

Tested by

no test coverage detected