From: Okhuomon Ajayi Date: Fri, 10 Oct 2025 23:33:03 GMT Subject: [PATCH] [Outreachy] commit.c: remove leftover comment Message-ID: <20251010233303.783212-1-okhuomonajayi54@gmail.com> Signed-off-by: Okhuomon Ajayi --- commit.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/commit.c b/commit.c index 16d91b2bfc..af20ca7c3d 100644 --- a/commit.c +++ b/commit.c @@ -475,10 +475,9 @@ int parse_commit_buffer(struct repository *r, struct commit *item, const void *b if (item->object.parsed) return 0; /* - * Presumably this is leftover from an earlier failed parse; - * clear it out in preparation for us re-parsing (we'll hit the - * same error, but that's good, since it lets our caller know - * the result cannot be trusted. + * Reset the parent list before re-parsing to ensure a clear + * commit state. This avoids carrying over data from a previous + * incomplete or invalid parse. */ free_commit_list(item->parents); item->parents = NULL; -- 2.43.0