@@ -355,16 +355,35 @@ Using the *unfold* button in the gutter of a diff, you can reveal additional lin
355
355
[ * Read more about expanding context in diffs.* ] ( https://github.com/blog/1705-expanding-context-in-diffs )
356
356
357
357
#### Getting content of Pull Request in Diff or Patch format
358
+ You can get the diff of a Pull Request by adding a ` .diff ` or ` .patch `
359
+ extension to the end of the URL. For example:
358
360
359
- You can get the diff of viewed pull request by adding ` .diff ` or ` .patch `
360
- to the end of URL. For example:
361
+ ```
362
+ https://github.com/tiimgreen/github-cheat-sheet/pull/15
363
+ https://github.com/tiimgreen/github-cheat-sheet/pull/15.diff
364
+ https://github.com/tiimgreen/github-cheat-sheet/pull/15.patch
365
+ ```
361
366
362
- * < https://github.com/tiimgreen/github-cheat-sheet/pull/15 >
363
- * < https://github.com/tiimgreen/github-cheat-sheet/pull/15.diff > - the pull
364
- request in DIFF format
365
- * < https://github.com/tiimgreen/github-cheat-sheet/pull/15.patch > - the pull
366
- request as PATCH
367
+ The ` .diff ` extension would give you this in plain text:
367
368
369
+ ```
370
+ diff --git a/README.md b/README.md
371
+ index 88fcf69..8614873 100644
372
+ --- a/README.md
373
+ +++ b/README.md
374
+ @@ -28,6 +28,7 @@ All the hidden and not hidden features of Git and GitHub. This cheat sheet was i
375
+ - [Merged Branches](#merged-branches)
376
+ - [Quick Licensing](#quick-licensing)
377
+ - [TODO Lists](#todo-lists)
378
+ +- [Relative Links](#relative-links)
379
+ - [.gitconfig Recommendations](#gitconfig-recommendations)
380
+ - [Aliases](#aliases)
381
+ - [Auto-correct](#auto-correct)
382
+ @@ -381,6 +382,19 @@ When they are clicked, they will be updated in the pure Markdown:
383
+ - [ ] Sleep
384
+
385
+ (...)
386
+ ```
368
387
369
388
### Hub
370
389
[ 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.
0 commit comments