-
-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailFor bugs, we need more details. For features, the feature must be described in more detailmodifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies them
Description
Feature Description
We now support direct diff comparison for the web (#16635),
but it would be nice to also offer an API endpoint for that.
I think a fitting route for that would be /repos/{owner}/{repo}/git/commits/compare/{baseCommitSHA}/{targetCommitSHA}
,
or alternatively /repos/{owner}/{repo}/git/commits/compare/{baseCommitSHA}..{targetCommitSHA}
.
The return type could be, just as for /repos/{owner}/{repo}/git/commits/{sha}.{diffType}
text/plain
, with the output of git diff {baseCommitSHA}..{targetCommitSHA}
.
Screenshots
No response
jimsheldon, condemil, cnbattle, dotdiego, matteobassan and 5 more
Metadata
Metadata
Assignees
Labels
issue/needs-feedbackFor bugs, we need more details. For features, the feature must be described in more detailFor bugs, we need more details. For features, the feature must be described in more detailmodifies/apiThis PR adds API routes or modifies themThis PR adds API routes or modifies them