close Warning:

Opened 10 years ago

Last modified 10 years ago

#111 new defect

Line-end cleanup post-commit script

Reported by: dirk Owned by: unassigned
Priority: minor Milestone:
Component: Build Version:
Keywords: Cc:

Description

A lot of changes come from some editors cleaning up line ends (removing useless spaces). It would be good to just avoid those by removing them automatically on commit.

Change History (2)

comment:1 Changed 10 years ago by cneumann

This page: http://svnbook.red-bean.com/nightly/en/svn.reposadmin.create.html#svn.reposadmin.create.hooks

has a big warning box near the end, which explains that modifying a commit is a bad idea. Maybe a script that cleans all sources and is run (manually) from time to time could be used instead ?

comment:2 Changed 10 years ago by dirk

Hm, too bad. :( Yeah, we could put a test script in the hook that rejects commits that don't follow the style guidelines that we can check and prints the command to run to fix it (if possible).

Note: See TracTickets for help on using tickets.