[go: up one dir, main page]

Skip to content

Hide files in PRs

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

GitLab limits the amount of changed files shown in a PR:

Screenshot_2024-12-08_at_19.10.15

When a PR contains files that don't need to be reviewed, this causes relevant files to not be shown. Users then have several options, none of which are practical:

  • Use git diff manually
  • Download the 'plain diff' that GitLab offers
  • Download the 'patches' that GitLab offers

As a solution, I think it should be possible to hide certain files - 'making way' for relevant files.

Note that this is NOT a duplicate of #17647 (closed); collapsed files still count towards the max amount of files shown.

Files to hide could be specified using .gitattributes (as is the case for collapsing).

Although the contents of hidden files may not be relevant, it should be evident that there are hidden files, to prevent 'XZ Utils'-like ordeals (injecting code in hidden binaries).

Edited by 🤖 GitLab Bot 🤖