We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7ac5eca + 4cb39fc commit dfd37b7Copy full SHA for dfd37b7
1 file changed
commit.c
@@ -701,8 +701,10 @@ static void clear_commit_marks_1(struct commit_list **plist,
701
if (!parents)
702
return;
703
704
- while ((parents = parents->next))
705
- commit_list_insert(parents->item, plist);
+ while ((parents = parents->next)) {
+ if (parents->item->object.flags & mark)
706
+ commit_list_insert(parents->item, plist);
707
+ }
708
709
commit = commit->parents->item;
710
}
0 commit comments