I run an auto-generator which we commit to the repo.
Is there a way to hide these files in the Merge request diffs?
I run an auto-generator which we commit to the repo.
Is there a way to hide these files in the Merge request diffs?
The issue Auto collapse diff of generated and less important code
tracks such a feature request. We encourage you to vote () to help add priority.
You can however achieve a workaround currently through the pre-existing support of .gitattributes
files in the root of the repository.
.gitattributes
file in the root of your repository# PATH/PATTERN TYPE
cxx/auto-gen/*.cpp binary
cxx/auto-gen/*.h binary
The workaround listed above is exactly what I want to do, but I can’t get it to work. I’ve tried putting the full path as written above and tried generic statements like “.c binary". I’ve also read somewhere that you can put ".c -diff” or “cxx/auto-gen -diff” “cxx/auto-gen/*.c -diff” to turn off a diff for all files, but no matter what I put in the Merge Request diff ignores .gitattributes file.
Any suggestions?