Author: ingo
Description:
Currently we at KDE are syncing sources of mediawiki in our own repo, to have a smooth upgrade path with our own setup.
But one of our own hooks for a push rejects any commit that includes files with windows line ending.
One could argue, why exclude windows line endings. This is just an agreement for a common file layout, and to have nice and clean file diffs.
The mediawiki sources are usually quite fine and already provide unix line endings overall, so a manual check is not necessary.
But from time to time some files come through that have the wrong line ending. If you don't check you end up with false commits which fail during push, and that leads to commit reverts, adjusting, adding back and pushing again.
Latest problem was even in the jquery.js file, something that more or less is maintained upstream.
I am sure i am not the only one who suffers from that problem. So it would be maybe a good idea if gerrit checks each files' line ending automatically and rejects certain ones.
Better diffs, better logs ;)
Version: unspecified
Severity: enhancement