1GH-PR-DIFF(1) GitHub CLI manual GH-PR-DIFF(1)
2
3
4
6 gh-pr-diff - View changes in a pull request
7
8
9
11 gh pr diff [<number> | <url> | <branch>] [flags]
12
13
14
16 View changes in a pull request.
17
18
19 Without an argument, the pull request that belongs to the current
20 branch is selected.
21
22
23 With '--web', open the pull request diff in a web browser instead.
24
25
26
28 --color <string>
29 Use color in diff output: {always|never|auto}
30
31
32 --name-only
33 Display only names of changed files
34
35
36 --patch
37 Display diff in patch format
38
39
40 -w, --web
41 Open the pull request diff in the browser
42
43
44
46 -R, --repo <[HOST/]OWNER/REPO>
47 Select another repository using the [HOST/]OWNER/REPO format
48
49
50
52 gh-pr(1)
53
54
55
56 Nov 2023 GH-PR-DIFF(1)