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
Describe the feature or problem you’d like to solve
So by default diffs of all the file changes are presented to the user. Parsing diff for a single file path is possible using sed but it can be error-prone and let's be honest not the best way to do it
@Bhupesh-V Thanks for the feature request but this is a limitation of the API unfortunately. The API does not have the ability to retrieve just a single file diff from a PR. As you stated we could introduce a new library to manually parse the full diff and discard all but the desired file changes but the one you linked appears to be unmaintained. As git already provides an alternative solution to the problem I am going to close this as won't add. Perhaps it is worth investigating if third-party diff viewers such as delta can provide this functionality by piping the output of gh pr diff to it.
Describe the feature or problem you’d like to solve
So by default diffs of all the file changes are presented to the user. Parsing diff for a single file path is possible using
sed
but it can be error-prone and let's be honest not the best way to do itProposed solution
I believe we can refer to this behavior from the
git
command itself,We can retrofit waigani's diffparser to filter out diffs when the user requests so
Let me know if this is something useful enough, More than happy to pick it up
The text was updated successfully, but these errors were encountered: