commit: Return NotFound from ListCommits for unknown revisions
Context
This MR must be understood in the context of the work to deprecate FindCommits RPC.
See epic here: gitlab-org#23203
See here more for context on this change: #6845 (comment 4058666061)
What
ListCommits now returns NotFound with a new ListCommitsError detail naming the offending revision when git-rev-list(1) reports an unknown name, unknown object ID, invalid range, or ambiguous short SHA. Other failures still return Internal. To support this, the gitpipe Revlist step now exposes the command's stderr via a RevlistError.
Why
FindCommits already returns NotFound, which Rails maps to an empty result. ListCommits returned Internal, forcing clients to parse the error message, so any wording change would turn an empty result into a 500. This blocks migrating FindCommits callers to ListCommits.
Depends on !9515 (merged) (first commit of this branch).
Closes #7544