File tree 3 files changed +22
-0
lines changed
3 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,8 @@ type: reference
6
6
7
7
You can set a maximum size for display of diff files (patches).
8
8
9
+ For details about diff files, [ View changes between files] ( ../project/merge_requests/index.md#view-changes-between-file-versions ) .
10
+
9
11
## Maximum diff patch size
10
12
11
13
Diff files which exceed this value will be presented as 'too large' and won't
Original file line number Diff line number Diff line change @@ -164,6 +164,26 @@ you hide threads that are no longer relevant.
164
164
165
165
[ Read more about resolving threads in merge requests reviews.] ( ../../discussions/index.md )
166
166
167
+ ## View changes between file versions
168
+
169
+ The ** Changes** tab of a merge request shows the changes to files between branches or
170
+ commits. This view of changes to a file is also known as a ** diff** . By default, the diff view
171
+ compares the file in the merge request branch and the file in the target branch.
172
+
173
+ The diff view includes the following:
174
+
175
+ - The file's name and path.
176
+ - The number of lines added and deleted.
177
+ - Buttons for the following options:
178
+ - Toggle comments for this file; useful for inline reviews.
179
+ - Edit the file in the merge request's branch.
180
+ - Show full file, in case you want to look at the changes in context with the rest of the file.
181
+ - View file at the current commit.
182
+ - Preview the changes with [ Review Apps] ( ../../../ci/review_apps/index.md ) .
183
+ - The changed lines, with the specific changes highlighted.
184
+
185
+ ![ Example screenshot of a source code diff] ( img/merge_request_diff_v12_2.png )
186
+
167
187
## Commenting on any file line in merge requests
168
188
169
189
> [ Introduced] ( https://gitlab.com/gitlab-org/gitlab-ce/issues/13950 ) in GitLab 11.5.
You can’t perform that action at this time.
0 commit comments