Gitea: Auto-collapse or hide certain file on diff/PR

Created on 31 May 2019  路  6Comments  路  Source: go-gitea/gitea

On some project/language, there are files (for example VisualStudio Project file, etc.) that you must commit to have a working repository.
However, those file are managed by the IDE your are using and none of the changes are made by hand.

I would like to either auto-collapse the file to not spend time on review for file I won't watch or being able to specify (either inside the repository in .gitea.yml) or in settings inside gitea to list the files I want to ignore in those process (PR, Diff, etc...)

kinfeature revieweconfirmed

Most helpful comment

I think we can put a file named .gitea/pr_collapse which have a format similiar with .gitignore to do that.

All 6 comments

Right, this is a good idea. We could define some situations here.

  • [ ] according extensions
  • [ ] specify sub folders
  • [ ] specify filenames
  • [ ] non-image binaries

I would NOT hide them because of securety conzerns - but then https://github.com/go-gitea/gitea/issues/8579 has to be there first

When I said "hide" I had in mind collapse like the ticket @6543 was mentioning.
When #8579 will be done, this feature can be easily implemented by auto-collapse some files.

I think we can put a file named .gitea/pr_collapse which have a format similiar with .gitignore to do that.

I think we can put a file named .gitea/pr_collapse which have a format similiar with .gitignore to do that.

I've always wanted /vendor files to auto-collapse. 馃憤

diff

I would like to auto-collapse/hide/push-down diffs that have specific type of change (regexp?).

My use case is IDE generated changes to hundreds of files in each commit. These changes has to be included in the commits since they're checksums etc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lunny picture lunny  路  3Comments

flozz picture flozz  路  3Comments

lunny picture lunny  路  3Comments

ghost picture ghost  路  3Comments

thehowl picture thehowl  路  3Comments