bug-standards
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script to generate ChangeLogs automatically


From: Jose E. Marchesi
Subject: Re: Script to generate ChangeLogs automatically
Date: Wed, 21 Nov 2018 15:06:08 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hey Siddhesh!
    
    There is a general consensus among the glibc community to stop
    maintaining a ChangeLog file and we were told that the requirement for
    doing that was to have a script that provided a representation of the
    git log that looks similar to a ChangeLog.
    
    I have attempted to write such a tool, please see attached script.

Very cool! :)

    The script does the following:
    
    1. Given a start and end git ref, it generates a list of refs to build
    ChangeLog entries for
    
    2. For each ref, parse the raw log of the change and identify files
    added, removed, renamed and modified
    
    3. For C sources that are modified, the script then generates parse
    trees of the old and new version of the file and attempts to find
    differences between them at a top level token level.

I get this error;

dc4f75757320d8d82cd4f4be29b156ca1e790479: Unknown line format T

when processing the commit:

address@hidden:~/gnu/hacks/poke$ git show --date=short --raw 
dc4f75757320d8d82cd4f4be29b156ca1e790479
commit dc4f75757320d8d82cd4f4be29b156ca1e790479
Author: Jose E. Marchesi <address@hidden>
Date:   2018-03-29

    foo

:100644 120000 2099840... ae58b2c... T  INSTALL
:100644 100644 dcedb1c... 622d875... M  testsuite/lib/poke.exp
:100644 100644 0c8eebc... 06f7b37... M  testsuite/poke.pkl/pkl.exp

Also, I get many errors like the following, instead of getting entries
for modified source entities.

2018-04-03  Jose E. Marchesi  <address@hidden>

        COMMIT: 67eead8489c377ac6c05cca599a294de5083df27
        * src/pkl-typify.c: Modified.
error: object 540a6069c1b72343feeb55f457cd5ccbd7687825 is a blob, not a commit
fatal: Invalid symmetric difference expression 540a606...
error: object db51deabaac3785581769b3398a19a2686247c36 is a blob, not a commit
fatal: Invalid symmetric difference expression db51dea...

I'm using git version 2.11.0.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]