gitblit/gitblit — pull request #51 by sauthieg (2012-11-05 13:59:33+00:00)
Title: Html notification

Hi

Here is some HTML formatted email notifications for Gitblit.
I was looking for that feature since a long time and I finally decided to do it myself :)

So here is the contribution.

What's important in it:
* Added a ```GitBlit.sendHtmlMail()``` method
* Completely rewritten ```sendmail.groovy``` and used the Groovy MarkupBuilder to easily build an HTML page
* Subject have been changed to something similar to the following
```[gitblit][main/repository] Guillaume Sauthier pushed 3 commits```

Notice the 2 levels prefix (with repository name minus '.git'), the displayName instead of the username

The notification email supports 2 levels of details (3 could be support, but now, only 2 have been implemented):
* commits: list commits (SHA-1, Message and Author)
* files: within a commit, what files have been changed/deleted/added, ...
* diff: within a file, the content diff (this part is not implemented)

The html has links to the commitdiff and blobdiff page included.

Here is a link to what it looks like in my Mail.app http://snag.gy/Je2w3.jpg