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

Re: Replacement for cvs2cl, for generating ChangeLog

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 27, 2007, 22:22 UTC
Message-ID
<Pine.LNX.4.63.0702272317510.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7v649nclsq.fsf@assigned-by-dhcp.cox.net>
Hi,
On Tue, 27 Feb 2007, Junio C Hamano wrote:
Show 12 quoted lines
> It's been a while I looked at the coding guideline the last time, but I 
> think GNU convention wants you to say "filename (function)" when 
> applicable.  Which I happen to think makes much more sense than the 
> filename alone.
> 
> The information that would appear in "log -p --pretty" output needs to 
> be condensed to obtain such a log entry.  You _could_ still do that as a 
> built-in if you really wanted to, but I tend to think that it is much 
> better to implement such a specialized processing (for one thing, what a 
> function is depends on the programming language you are reading from) as 
> an external postprocessing filter that people can more easily tweak for 
> their specific needs.

It would be easy to write a consume() function (called with context == 0) which takes the information from the "@@" lines.

But the builtin -- as the script -- would suffer from the following problem:

-- snip -- +} + +static int new_function(void) -- snap --

> That's why I keep stressing that one good thing about git is it is 
> easily scriptable.

IMHO it is easier to get right as a builtin. But as I said, I am not feeling too strongly about it.

Ciao, Dscho

Previous: Junio C HamanoNext: Johannes Schindelin
Message 17 of 19 in “Replacement for cvs2cl, for generating ChangeLog”
  1. Simon JosefssonFeb 27, 2007
  2. Junio C HamanoFeb 27, 2007
  3. Johannes SchindelinFeb 27, 2007
  4. Sergey VlasovFeb 27, 2007
  5. gitco - replacement for cvscoSimon Josefsson, Feb 28, 2007
  6. Yann DirsonFeb 28, 2007
  7. Simon JosefssonFeb 28, 2007
  8. Johannes SchindelinFeb 27, 2007
  9. Simon JosefssonFeb 28, 2007
  10. Junio C HamanoFeb 27, 2007
  11. Johannes SchindelinFeb 27, 2007
  12. Johannes SchindelinFeb 27, 2007
  13. Andy ParkinsFeb 27, 2007
  14. Johannes SchindelinFeb 27, 2007
  15. Robin RosenbergFeb 27, 2007
  16. Junio C HamanoFeb 27, 2007
  17. Johannes SchindelinFeb 27, 2007
  18. Johannes SchindelinFeb 27, 2007
  19. Simon JosefssonFeb 28, 2007

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.