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, 15:56 UTC
Message-ID
<Pine.LNX.4.63.0702271648430.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<200702271257.37437.andyparkins@gmail.com>
Hi,
On Tue, 27 Feb 2007, Andy Parkins wrote:
Show 5 quoted lines
> [...] perhaps a change to git's own log generator to support
> 
>  git-rev-list --pretty=gnucl
> 
> would be more appropriate.

I was already hacking on a builtin changelog command, because I was convinced that this breaks our model in builtin-log: We show the commit information first, and _then_ we call the diff machinery. And GNU ChangeLog format mixes these informations: the date and the author are commit information, but the files are tree information, and the oneline is commit information again.

However, your mail made me think again.

I now reused (AKA misused) the stats separator to take the oneline description, which is set in show_log() when revs->commit_format == CMIT_FMT_CHANGELOG, which is output by diff_flush() when the diff_options->output_format == DIFF_FORMAT_CHANGELOG.

BTW I already found a subtle bug. In finalize_changelog(), options->stat_sep can be NULL, if no oneline was found.

But AFAIK we do not allow empty commit messages, so this bug would never have been triggered.

Ciao, Dscho

Previous: Andy ParkinsNext: Robin Rosenberg
Message 14 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.