git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
OMOlivier Marin <dkr+ml.git@free.fr>
Date
Jun 19, 2008, 10:08 UTC
Message-ID
<485A300E.2050404@free.fr>
In-Reply-To
<4859CCB5.9070200@asolutions.com>
mike.gaffney a écrit :
Show 6 quoted lines
> 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.
Previous: mike.gaffney
Message 2 of 2 in “Question: git commit -v uncomment Changes to be commited”
  1. mike.gaffneyJun 19, 2008
  2. Olivier MarinJun 19, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.