{"thread":{"id":"14031","subject":"Question: git commit -v uncomment Changes to be commited","startedAt":"2008-06-19T03:04:21Z","lastAt":"2008-06-19T10:08:14Z","messageCount":2,"participants":["mike.gaffney","Olivier Marin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"80287","messageId":"4859CCB5.9070200@asolutions.com","threadId":"14031","inReplyTo":null,"subject":"Question: git commit -v uncomment Changes to be commited","fromName":"mike.gaffney","fromEmail":"mike.gaffney@asolutions.com","sentAt":"2008-06-19T03:04:21Z","receivedAt":"2008-06-19T03:04:21Z","isPatch":false,"sender":{"key":"mike.gaffney@asolutions.com","avatar":null},"body":"I find myself always uncommenting the \"Changes to be commited:\" section \non a git commit -v. Other than a nifty regex with vi, I'm wondering if \nthere is a way to customize the unified diff that is created with commit \n-v. I've looked through the list, but it is one of those things where I \ndon't really know how to ask the question (phrase the search). I would \nbe glad of any help that people could give me.\n\nThanks,\n   Mike Gaffney\n"},{"id":"80307","messageId":"485A300E.2050404@free.fr","threadId":"14031","inReplyTo":"4859CCB5.9070200@asolutions.com","subject":"Re: Question: git commit -v uncomment Changes to be commited","fromName":"Olivier Marin","fromEmail":"dkr+ml.git@free.fr","sentAt":"2008-06-19T10:08:14Z","receivedAt":"2008-06-19T10:08:14Z","isPatch":false,"sender":{"key":"dkr+ml.git@free.fr","avatar":null},"body":"mike.gaffney a écrit :\n> I find myself always uncommenting the \"Changes to be commited:\" section\n> on a git commit -v. Other than a nifty regex with vi, I'm wondering if\n> there is a way to customize the unified diff that is created with commit\n> -v. I've looked through the list, but it is one of those things where I\n> don't really know how to ask the question (phrase the search). I would\n> be glad of any help that people could give me.\n\nYou probably want to edit the hook .git/hooks/prepare-commit-msg in your\nrepository. Don't forget to enable it with chmod +x.\n\nMore information at:\n  http://www.kernel.org/pub/software/scm/git/docs/githooks.html\n\nOlivier.\n"}]}