integrity/integrity — pull request #130 by richmeyers (2011-10-18 03:09:27+00:00)
Title: Show full commit message in integrity

Currently integrity only shows the first line of the commit message, in git terminology the "subject". This pull request adds display of the rest of the commit message.

Besides the obvious benefit of being able to read the entire message from integrity, this change has additional benefits for projects where the master repository is actually subversion (via git-svn). Svn revision number is stored in the commit message and is visible to users, and usable by code, with this change.

The way I implemented this is I added a new column for what git calls the "body", which is the entire commit message minus the "subject" (which was the first line). Per #78 it may be more convenient to store "subject" and "body" together in the new field, which will have the benefit of keeping the integrity-displayed short message short (255 chars) while also displaying subjects that exceed 255 chars in builds.

Datamapper migrations are extremely painful, due to lack of documentation and/or sensible ways of doing them altogether. Because of this I did not rename the message column to subject as I wanted. See https://github.com/richmeyers/integrity/compare/subject-message-migration if you are looking to self-inflict some damage.