{"thread":{"id":"589","subject":"[PATCH Cogito] Remove heading and trailing empty lines from commit messages","startedAt":"2005-05-12T20:44:30Z","lastAt":"2005-05-12T20:44:30Z","messageCount":1,"participants":["Marcel Holtmann"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"3193","messageId":"1115930670.18499.64.camel@pegasus","threadId":"589","inReplyTo":null,"subject":"[PATCH Cogito] Remove heading and trailing empty lines from commit messages","fromName":"Marcel Holtmann","fromEmail":"marcel@holtmann.org","sentAt":"2005-05-12T20:44:30Z","receivedAt":"2005-05-12T20:44:30Z","isPatch":true,"sender":{"key":"marcel@holtmann.org","avatar":null},"body":"Hi Petr,\n\nthe attached patch removes heading and trailing empty lines from the\ncommit message before doing the commit.\n\nRegards\n\nMarcel\n\n\nSigned-off-by: Marcel Holtmann <marcel@holtmann.org>\n\n\n\nIndex: cg-commit\n===================================================================\n--- 00b94eea5b99d5dd1d1bbe9c9ca3502d11aec581/cg-commit  (mode:100755)\n+++ uncommitted/cg-commit  (mode:100755)\n@@ -134,7 +134,7 @@\n else\n \tcat >>$LOGMSG2\n fi\n-grep -v ^CG: $LOGMSG2 >$LOGMSG\n+grep -v ^CG: $LOGMSG2 | sed '/./,${/./b;:a;$d;N;/\\n$/ba;b;};d' >$LOGMSG\n rm $LOGMSG2\n \n \n"}]}