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

Re: cg-commit does not run pre-commit hook?

From
WDWolfgang Denk <wd@denx.de>
Date
Oct 12, 2006, 15:54 UTC
Message-ID
<20061012155444.27391353BDE@atlas.denx.de>
In-Reply-To
<452E545F.6060406@op5.se>
Dear Andreas,
in message <452E545F.6060406@op5.se> you wrote:
Show 6 quoted lines
>
> > I'm looking for a way  to  register  the  commit  message  into  some
> > changelog  file  which  gets  checked  in with the same commit. Or is
> > there another way to do this? 
> 
> git log

Sorry, this does not work, as I can access the commit message only *after* the commit completed, and then it's too late to get it into a file that shall be included with the very same commit.

> The commit message is already saved and git (and cogito, I presume) 
> provide tools to fetch those messages in the relevant different orders 

Yes, but only *after* doing the job. That's why I'm looking for a pre-commit hook.

> One part of why a proper SCM is so good to use is that you shouldn't 
> have to maintain a separate changelog. The SCM should create one for you 
> when you ask it, based on the comments you've entered when actually 
> making the changes.

True, as long as you can work within the SCM. The changelog file I'm talking about is mostly for people who just work with exported trees (for example, when they download a tarball).

Best regards,
Wolfgang Denk
-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Everyting looks interesting until you do it. Then you find it's  just
another job.                     - Terry Pratchett, _Moving Pictures_
Previous: Andreas EricssonNext: Linus Torvalds
Message 5 of 8 in “cg-commit does not run pre-commit hook?”
  1. Wolfgang DenkOct 11, 2006
  2. Petr BaudisOct 12, 2006
  3. Wolfgang DenkOct 12, 2006
  4. Andreas EricssonOct 12, 2006
  5. Wolfgang DenkOct 12, 2006
  6. Linus TorvaldsOct 12, 2006
  7. Linus TorvaldsOct 12, 2006
  8. Josef WeidendorferOct 12, 2006

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.