less than 1 minute read

The last few projects I’ve been on have had a “rake commit” task for checking in. This is documented at Jay’s blog: Ruby: rake commit

Each project has improved upon these tasks. As a result, I thought it would be handy to create a plugin that projects can start with and contribute to. Though the tasks are about subversion, I started a project on github for better collaboration: http://github.com/pgr0ss/rake_commit_tasks

I started with the code at Jay’s blog and added some stuff from my last few projects:

  • Use readline instead of gets so you can use the arrow keys and backspace
  • Break if there are conflicts in svn up
  • Don’t add result of conflicts to subversion (.mine, etc)
  • Check cc.rb and prompt if build is failing

Comments and patches are welcome.

Updated: