{"thread":{"id":"38622","subject":"[REQUEST] another --cleanup mode for commit","startedAt":"2015-02-21T17:48:31Z","lastAt":"2015-02-21T17:48:31Z","messageCount":1,"participants":["Christoph Anton Mitterer"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"256472","messageId":"1424540911.15539.23.camel@scientia.net","threadId":"38622","inReplyTo":null,"subject":"[REQUEST] another --cleanup mode for commit","fromName":"Christoph Anton Mitterer","fromEmail":"calestyo@scientia.net","sentAt":"2015-02-21T17:48:31Z","receivedAt":"2015-02-21T17:48:31Z","isPatch":false,"sender":{"key":"calestyo@scientia.net","avatar":"https://gravatar.com/avatar/74cd78048081efac1fcd21e681751ed55968f949a50e33adbe1a41c572a605cd?d=mp&s=160"},"body":"Hey.\n\nRight now, all --cleanup modes for commit (except verbatim) seem to\nremove all \"unnecessary\" whitespace and collapse consecutive empty\nlines.\n\nI use already vim to show me any such things and when I don't remove it\nthen, this usually means I want to have it intentionally (especially\nconsecutive empty lines).\n\nNow obviously I could do things like --no-status, but I actually like\nthe status to be shown - as I like it to be automatically removed. ;-)\n\n\nSo it would be great if one could have another cleanup mode which\nbasically does just the following:\n- remove any trailing lines that start with # and the one newline (which\n  is automatically added with the status) before these\n  e.g.\n    foo\n    #bar\n  \n    #status\n  yields in:\n    foo\n    #bar\n  e.g.\n    foo\n    #bar\n    #status\n  yields in:\n    foo\n\n- apart form that, leave any whitespace, new lines, etc. as is\n\nCheers,\nChris.\n"}]}