magit/magit — pull request #363 by DarwinAwardWinner (2012-01-25 21:02:55+00:00)
Title: Option to filter comments out of git commit messages

Since I added a preference for adding comments to the log-edit buffer, I realized that these comments were not being deleted and were getting included in the commit message. This pull request implements a preference to clean comments from commit messages before committing them, by conditionally passing either `--cleanup=strip` or `--cleanup=whitespace` to `git commit`.

Fixes #361.

I also ensured that if you enable insertion of git-status comments, then comment-cleanup gets enabled too. This fixes the problem mentioned in my surpsied [comment](https://github.com/magit/magit/commit/d01bfcc3c47c3b14db612270d208d25dd756f90d#commitcomment-898163) on an earlier commit message.