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

Re: ANNOUNCE: git2cl

From
Simon Josefsson <simon@josefsson.org>
Date
Mar 2, 2007, 11:05 UTC
Message-ID
<87649jsy5s.fsf@latte.josefsson.org>
In-Reply-To
<20070302101607.GA6811@alberich.amd.com>
"Andreas Herrmann" <andreas.herrmann3@amd.com> writes:
Show 15 quoted lines
> On Fri, Mar 02, 2007 at 10:03:09AM +0100, Simon Josefsson wrote:
>> Hi!  I really need proper GNU ChangeLog functionality for my projects,
>> so I ended up writing my own script to do this in Perl.  Below is the
>> README, but you can find more information at:
>> 
>> http://josefsson.org/git2cl/
>> 
>
>
> Hi,
>
> Just for your interest ...
> I downloaded git2cl version as of 02-Mar-2007 09:58, gave it a try and
> received the following (while running the script for an current git
> tree):
Hi.  Thanks for testing!
Show 12 quoted lines
>   #> git log --pretty --numstat --summary | ~/git2cl
>   2007-02-28  Junio C Hamano <junkio@cox.net>
>
>           * : Add recent changes to draft 1.5.1 release notes.
>
>
>
>   Usage: POSIX::strftime(fmt, sec, min, hour, mday, mon, year, wday =
>   -1, yday = -1, isdst = -1)
>      at git2cl line 257, <> line 20.
>
> So it seems that your script needs some improvement.

Yup! The parser did not handle merges, and several other things that I haven't learned about and didn't use in libtasn1 yet.

I have fixed the script so that it doesn't break on the git log. However, the log style used in git doesn't work perfectly with the ChangeLog format, some problems are:

* Sentences are sometimes finished with newline instead of '.'.  It is
  difficult for the parser to know when a sentence is finished or not.
  For example:
    * np/types:
      Cleanup check_valid in commit-tree.
      make sure enum object_type is signed
      get rid of lookup_object_type()
      convert object type handling from a string to a number
      formalize typename(), and add its reverse type_from_string()
      sha1_file.c: don't ignore an error condition in sha1_loose_object_info()
      sha1_file.c: cleanup "offset" usage
      sha1_file.c: cleanup hdr usage
* The Signed-off-by message also aren't terminated with '.'.  However,
  I think it would be useful to put these headers together with the
  author field, something like this:
2007-02-28  Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
        Signed-off-by: Uwe Kleine-König <ukleinek@informatik.uni-freiburg.de>
        Signed-off-by: Junio C Hamano <junkio@cox.net>
        * Documentation/Makefile: Include config.mak in doc/Makefile
        config.mak.autogen is already there.  Without this change it is not
        possible to override mandir in config.mak. 
   However, this is an extension of the changelog format, and should
   probably be discussed within the GNU community.
There are more issues, but making this work right is not my priority.

If you care, please run the script and compare the output with what you believe should have happened and try to improve it. Possibly the current parser is too simplistic to handle more complex situations, but there is a starting point for everything...

/Simon
Previous: Andreas HerrmannNext: Jakub Narebski
Message 3 of 4 in “ANNOUNCE: git2cl”
  1. Simon JosefssonMar 2, 2007
  2. Andreas HerrmannMar 2, 2007
  3. Simon JosefssonMar 2, 2007
  4. Jakub NarebskiMar 4, 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.