From a347b2385769e1469b0dc8d5a1c9c3b14f6a8711 Mon Sep 17 00:00:00 2001 From: Ruslan Brest Date: Tue, 15 Apr 2014 10:27:54 +0300 Subject: [PATCH 1/2] Getting content of Pull Request in Diff or Patch format --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index eb15621..2b456f9 100644 --- a/README.md +++ b/README.md @@ -330,6 +330,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. From 2e4446fb6e634c9a2d92c89eba7740e523920588 Mon Sep 17 00:00:00 2001 From: Ruslan Brest Date: Tue, 15 Apr 2014 10:38:27 +0300 Subject: [PATCH 2/2] Add ToC entry for Getting content of Pull Request in Diff or Patch format --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 2b456f9..13a0481 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)