From: Olivier Marin Date: Thu, 19 Jun 2008 10:08:14 GMT Subject: Re: Question: git commit -v uncomment Changes to be commited Message-ID: <485A300E.2050404@free.fr> In-Reply-To: <4859CCB5.9070200@asolutions.com> mike.gaffney a écrit : > I find myself always uncommenting the "Changes to be commited:" section > on a git commit -v. Other than a nifty regex with vi, I'm wondering if > there is a way to customize the unified diff that is created with commit > -v. I've looked through the list, but it is one of those things where I > don't really know how to ask the question (phrase the search). I would > be glad of any help that people could give me. You probably want to edit the hook .git/hooks/prepare-commit-msg in your repository. Don't forget to enable it with chmod +x. More information at: http://www.kernel.org/pub/software/scm/git/docs/githooks.html Olivier.