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

Re: Commit template

From
MHMarcel Holtmann <marcel@holtmann.org>
Date
May 8, 2005, 20:36 UTC
Message-ID
<1115584617.8949.51.camel@pegasus>
In-Reply-To
<20050508201723.GH9495@pasky.ji.cz>
Hi Petr,
Show 12 quoted lines
> > > my argument is; not to mess up with the CG: lines created by cg-commit.
> > > If you wanna insert a warning then you can of course add additional CG:
> > > lines to the commit template.
> > 
> > Well, i'd argue that anyone making their own commit should be responsible
> > for making it look however they like.  Maybe they want to only use only 60
> > character wide lines and are tired of seeing the notice about CG: being
> > ignored.  Gives the power user a tad more flexibility.   But I really
> > don't care much either way.
> 
> I'm with Sean on this one - implemented (with current cg-commit, and I
> used .git/commit-template file instead), committed, pushed out.

then please do a "touch .git/commit-template" and call cg-commit. Now you will see what I mean. It is too easy to screw up.

Why not leave the list of modified files in the hand of the cg-commit and people that wanna extra text inside their commit-template add something like:

CG: ---
CG: This is my testing tree, don't commit

This will look much prettier and gives people the same possibilities to change everything. If you wanna make the modified files list into a full configurable template, then I think you must introduce place holders.

Also an option to suppress the list of modified files is possible.
Regards
Marcel
Previous: Petr BaudisNext: Petr Baudis
Message 9 of 11 in “Commit template”
  1. SeanMay 8, 2005
  2. Marcel HoltmannMay 8, 2005
  3. SeanMay 8, 2005
  4. Marcel HoltmannMay 8, 2005
  5. SeanMay 8, 2005
  6. Marcel HoltmannMay 8, 2005
  7. SeanMay 8, 2005
  8. Petr BaudisMay 8, 2005
  9. Marcel HoltmannMay 8, 2005
  10. Petr BaudisMay 8, 2005
  11. Marcel HoltmannMay 8, 2005

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.