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

Re: git gui and commit-msg hook

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jan 18, 2008, 04:12 UTC
Message-ID
<20080118041230.GA24004@spearce.org>
In-Reply-To
<054F21930D24A0428E5B4588462C7AEDC5F8DC@ednex512.dsto.defence.gov.au>
"Blucher, Guy" <Guy.Blucher@dsto.defence.gov.au> wrote:
> Is the commit-msg hook supposed to work when using git gui to do a
> commit?
Uhhh.  Whoops.  ;-)
git-gui doesn't implement the commit-msg hook.  Because I forgot
to implement it.  So yes, its supposed to work, but no, it doesn't,
because it was never coded.  :-)
 
> All I want to do is verify that the text of a commit message follows
> some "corporate standard", perhaps I can do this using the pre-commit
> hook instead, but commit-msg seems to be the best fit?  

Yes, commit-msg is the proper hook to use here. But git-gui doesn't honor it. I'll try to work out a fix after dinner this evening.

Thanks for the bug report.  Definately appreciated.
-- 
Shawn.
Previous: Blucher, GuyNext: Shawn O. Pearce
Message 2 of 5 in “git gui and commit-msg hook”
  1. Blucher, GuyJan 16, 2008
  2. Shawn O. PearceJan 18, 2008
  3. Shawn O. PearceJan 21, 2008
  4. Junio C HamanoJan 21, 2008
  5. Shawn O. PearceJan 21, 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.