# Question: git commit -v uncomment Changes to be commited

2 messages from 2008-06-19 to 2008-06-19. Participants: mike.gaffney, Olivier Marin.
Thread: https://gitlist.dev/t/14031

## mike.gaffney, 2008-06-19 03:04

Subject: Question: git commit -v uncomment Changes to be commited
Message-ID: <4859CCB5.9070200@asolutions.com>
URL: https://gitlist.dev/e/4859CCB5.9070200%40asolutions.com

```
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.

Thanks,
   Mike Gaffney

```

## Olivier Marin, 2008-06-19 10:08

Subject: Re: Question: git commit -v uncomment Changes to be commited
Message-ID: <485A300E.2050404@free.fr>
URL: https://gitlist.dev/e/485A300E.2050404%40free.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.

```
