{"thread":{"id":"11923","subject":"[BUG] DOS filetype and pre_commit hook","startedAt":"2008-02-06T22:22:50Z","lastAt":"2008-02-06T22:22:50Z","messageCount":1,"participants":["MALET Jean-Luc"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"67721","messageId":"47AA333A.8040403@gmail.com","threadId":"11923","inReplyTo":null,"subject":"[BUG] DOS filetype and pre_commit hook","fromName":"MALET Jean-Luc","fromEmail":"jeanluc.malet@gmail.com","sentAt":"2008-02-06T22:22:50Z","receivedAt":"2008-02-06T22:22:50Z","isPatch":false,"sender":{"key":"jeanluc.malet@gmail.com","avatar":null},"body":"I use git for tracking change on the project I'm working on and the \nsourcecode is in dos text encoding (<CR><LF>)\nwhen I commit I have to use the --no-verify option because the perl part \nof the hook (btw isn't it possible to have git not depend on perl?) \ndon't use the right regexp to track if there is trailing whitespace\nthe corresponding regex to be used with grep is :\ngrep -E '^\\+.*[[:blank:]]+[[:space:]]$'\n\nbecause <CR> is matched by [[:space:]] and then a line like :\n\nno trailing whitespace<CR><LF>\n\nwill trigger a trailing whitespace event\n\nSee the attached file that correct the issue\n\nBest Regards,\nJLM\n\n-- \nKISS! (Keep It Simple, Stupid!)\n(garde le simple, imbécile!)\n\"mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses \nsimples et qui marchent, espèce d'imbécile!\"\n"}]}