Diffs and Commenting on Diffs
Create Deep Dive
Oswaldo Ferreira - Backend Engineer
January 28, 2018
1
Today we’ll cover
2
Table of Contents
3
What are git diffs?
git-diff is a function that takes two input data sets and outputs the changes between them. git diff is a multi-use Git command that when executed runs a diff function on Git data sources. These data sources can be commits, branches, files and more.
4
What are git diffs?
🧙
5
Demo
6
Standard comparison view diffs (workflow)
7
Merge request diffs
8
Merge request diffs (Storage)
9
Merge request diffs (Storage workflow)
10
Merge request diffs (Fetching workflow)
11
Merge request diffs (Presentation workflow)
12
Merge request diffs (caching layers)
13
Comments on diffs (Discussion tab)
14
Comments on diffs
15
Comments on diffs (Storage)
File path SHA, e.g. 02d635fb83402a9a1a0c113772f1e6d365723b95_93_90
16
Comments on merge request diffs (Storage)
Obs: We delete merge_request_diff_files after a MR gets merged, therefore reusing all diffs from MRs is not possible.
17
Comments on diffs (Storage)
18
Comments on diffs (Storage workflow)
19
Comments on diffs (caching layers)
20
Questions?
21
Code Dive
22
Questions?
23
Thank you
Oswaldo Ferreira - Backend Engineer
oswaldo@gitlab.com
24