| 231 | == Code review: generate a single diff for a PR with multiple commits == |
| 232 | |
| 233 | To speed up reviewing of a PR with multiple commits by reading a single diff file, you may diff the branch against the branch origin point. For example, if you PR 28 is on local branch pr_28, branched from master, you can do: |
| 234 | |
| 235 | {{{ |
| 236 | git checkout pr_28 |
| 237 | |
| 238 | # note: with the three dots, it will only show diffs from changes on your side: |
| 239 | git diff master... |
| 240 | }}} |
| 241 | |
| 242 | For more hints, see e.g. this [https://stackoverflow.com/questions/29810331/is-there-a-quick-way-to-git-diff-from-the-point-or-branch-origin Stackoverflow discussion]. |
| 243 | |