X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=commit.c;h=56efc69f1f4bf1568eaa549bed16f7cc2cd669ba;hb=5a2282de13c4da13f979185e652c8a08e2481fd1;hp=fb02ba609b00d48a8e0e4c127cdc292a438bf9f3;hpb=8fc11b5aa98540f7caab87e22e5aae63512893a2;p=git.git diff --git a/commit.c b/commit.c index fb02ba60..56efc69f 100644 --- a/commit.c +++ b/commit.c @@ -352,6 +352,19 @@ struct commit *pop_most_recent_commit(struct commit_list **list, return ret; } +void clear_commit_marks(struct commit *commit, unsigned int mark) +{ + struct commit_list *parents; + + parents = commit->parents; + commit->object.flags &= ~mark; + while (parents) { + if (parents->item && parents->item->object.parsed) + clear_commit_marks(parents->item, mark); + parents = parents->next; + } +} + /* * Generic support for pretty-printing the header */