diff options
| author | Junio C Hamano <gitster@pobox.com> | 2022-12-26 11:42:05 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2022-12-26 11:42:05 +0900 |
| commit | c637bd230dd705b39b22251110eb1fcc8d15b075 (patch) | |
| tree | dd5787f30bb979f8a700eb134ca77cb69914b416 /commit.c | |
| parent | Merge branch 'rs/am-parse-options-cleanup' (diff) | |
| parent | commit: skip already cleared parents in clear_commit_marks_1() (diff) | |
| download | git-c637bd230dd705b39b22251110eb1fcc8d15b075.tar.gz git-c637bd230dd705b39b22251110eb1fcc8d15b075.zip | |
Merge branch 'rs/clear-commit-marks-cleanup'
Code clean-up.
* rs/clear-commit-marks-cleanup:
commit: skip already cleared parents in clear_commit_marks_1()
Diffstat (limited to 'commit.c')
| -rw-r--r-- | commit.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -701,8 +701,10 @@ static void clear_commit_marks_1(struct commit_list **plist, if (!parents) return; - while ((parents = parents->next)) - commit_list_insert(parents->item, plist); + while ((parents = parents->next)) { + if (parents->item->object.flags & mark) + commit_list_insert(parents->item, plist); + } commit = commit->parents->item; } |
