You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
I believe it would be beneficial to have not only diff, but also what files were changed. Here is the APIs from other services that have info about files added/modified/deleted/renamed:
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 ofgit diff {baseCommitSHA}..{targetCommitSHA}
.Screenshots
No response
The text was updated successfully, but these errors were encountered: