From 33e41cd2930eab714d52ed70ed88f3bff6c86ede Mon Sep 17 00:00:00 2001
From: Roman Azarenko <roman.azarenko@iopsys.eu>
Date: Fri, 22 Mar 2024 10:52:19 +0100
Subject: [PATCH] git: collapse autogenerated HTML docs in GitLab

GitLab 16.10 introduced a feature to [automatically collapse
autogenerated files][1] (e. g. lock files) in merge requests.
The benefit is a more clean merge request experience, as well reducing
load on the GitLab instance.

This is also useful to enable for other kinds of autogenerated files.

In usp-js, the `public` directory is autogenerated, and is quite noisy
when viewing commits/merge requests.

Autocollapse all files in the `public` directory.

[1]: https://docs.gitlab.com/ee/user/project/merge_requests/changes.html#collapse-generated-files
---
 .gitattributes | 2 ++
 1 file changed, 2 insertions(+)
 create mode 100644 .gitattributes

diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..605576a
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+# GitLab: collapse all autogenerated docs in "public" directory
+public/** gitlab-autogenerated
-- 
GitLab