I would like to be able to something like ghi show --patch 200 | git am -3.
ghi show --patch 200 | git am -3
Could you add -p, and --patch to to the show command? You will have to suffix the issue URL with .patch to get it. It will only work on pull requests.
-p, and --patch
This is related to #47.
It's also possible to git fetch origin pull/200/head:issue-200, which is just ugly. It will create a local branch called issue-200 containing the pull request.
git fetch origin pull/200/head:issue-200
Add patch option to show command [fix #59]
Signed-off-by: Stephen Celis <firstname.lastname@example.org>
@stephencelis Can you colour highlight the patch unless piped?
Not sure of an easy way to do this?