diff --git a/README.md b/README.md index 84cfc42..1e3f466 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,7 @@ A collection of cool hidden and not so hidden features of Git and GitHub. This c - [Rendered prose Diffs](#rendered-prose-diffs) - [Diffable Maps](#diffable-maps) - [Expanding Context in Diffs](#expanding-context-in-diffs) + - [Getting content of Pull Request in Diff or Patch format](#getting-content-of-pull-request-in-diff-or-patch-format) - [Hub](#hub) - [Decreasing Contributor Friction](#decreasing-contributor-friction) - [Contributing Guidelines](#contributing-guidelines) @@ -353,6 +354,18 @@ Using the *unfold* button in the gutter of a diff, you can reveal additional lin [*Read more about expanding context in diffs.*](https://github.com/blog/1705-expanding-context-in-diffs) +#### Getting content of Pull Request in Diff or Patch format + +You can get the diff of viewed pull request by adding `.diff` or `.patch` +to the end of URL. For example: + +* +* - the pull + request in DIFF format +* - the pull + request as PATCH + + ### Hub [Hub](https://github.com/github/hub) is a command line Git wrapper that gives you extra features and commands that make working with GitHub easier.