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
It's hard to see the changes from a given pull request. You can produce a diff with git but it can
take some trial and error (and it's easy to accidentally diff against the wrong HEAD). github.com
cleanly solves this problem and we have all the same context to solve it in the CLI. Having this
will make code review easier from the command line.
Proposed solution
$ gh pr diff # produce diff for current branch's PR or a diff of the current branch against what we would open a pr against by default in pr create
$ gh pr diff 123 # produce diff for specific PR
In both cases we'd form the correct call to git diff and hand off to that (potentially dropping
into a pager).
Activity