Exclude directory from GitLab diff merge request

Is it possible to exclude a directory from the diff mapping of a merge request in GitLab?

We started the version of the bower_components folder (1 - to speed up the assembly of the application, 2 - because bower does not have a locking mechanism), but this creates problems when viewing the code - many changed files appear inside bower_components, which makes diff differ read.

Thanks in advance

+4
source share
1 answer

Since gitlab 8.8, gitlab support .gitattributes.

So, if your project doesn’t have to .gitattributesadd it,

and exclude files for diff, add:

*.<whatever> -diff

and exclude directories from diff:

<mydir> -diff
+4
source

Source: https://habr.com/ru/post/1663594/


All Articles