ericmatthys/grunt-changelog — pull request #18 by mischah (2014-08-23 10:47:25+00:00)
Title: Add new option `fileHeader`

This is accomplished:

* Add example tasks using the `fileHeader ` option.
* Add tests.
* Update readme.

The code is a bit ugly because it needs to handle `options.insertType === 'prepend'`.
I could have moved the handling to the `case 'prepend':` ([L113](#diff-3e81f8611acaed53f40d1a3e5934e6b7R113)) and get rid of that regexp. But that has its own ugliness because then my code would be cluttered all over `function writeChangelog()`.

So I guess ist better to have all code related to `option.fileHeader` in a single condition like:
````
if (options.fileHeader) {
// do stuff
}
````

Closes #14