Skip to content

Fix line commenting for the initial commit

What does this MR do?

Support line positions on the initial commit, where we can't compare because there's no parent commit.

Are there points in the code the reviewer needs to double check?

I chose to use the blank SHA to represent the initial commit, but it could as easily be the same SHA. I just thought this was clearer.

Why was this MR needed?

People couldn't add line comments to the initial commit!

What are the relevant issue numbers?

Closes #20895 (closed).

Screenshots (if relevant)

Comment_on_initial_commit

Does this MR meet the acceptance criteria?

Merge request reports