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

prepare-commit-msg hook and git gui

From
JWJoshua Williams <joshua.williams@qlogic.com>
Date
Sep 4, 2008, 18:06 UTC
Message-ID
<48C023C0.10306@qlogic.com>

I've created a prepare-commit-msg hook that composes a basic template needed to be filled out by users doing a commit. When I issue a 'git commit' it works great. However, if I use 'git gui'/ 'git citool' then the template never appears in the "commit message". It appears that the prepare-commit-msg hook is either not run while invoking git gui or git gui is not properly displaying the generated commit message in the commit message pain. Is there some git gui configuration that needs to be done to accomplish this? Is this a git gui bug? Or is it simply some kind of driver error?

The commit-msg hook does appear to be run after hitting the commit button in git gui and git gui does display the proper output from the commit-msg hook. It appears that this is a prepare-commit-msg only issue...

Thanks for any info!
- Josh
Next: Shawn O. Pearce
Message 1 of 2 in “prepare-commit-msg hook and git gui”
  1. Joshua WilliamsSep 4, 2008
  2. Shawn O. PearceSep 4, 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.