is it possible to exclude a directory from displaying a diff of merge request in GitLab?
We started to version the bower_components folder (1 - to speed up app build, 2 - because bower has no .lock mechanism), but it makes trouble when doing code review - many changed files appear inside bower_components which makes the diff harder to read.
Thanks in advance
Since gitlab 8.8, gitlab support the .gitattributes.
So if your project does not have .gitattributes
add it,
and to exclude files for diff, append:
*.<whatever> -diff
and to exclude directories from a diff:
<mydir> -diff
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With