bug-wget
[Top][All Lists]
Advanced

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

[Bug-wget] [PATCH] Generate changelog from the git commit messages


From: Giuseppe Scrivano
Subject: [Bug-wget] [PATCH] Generate changelog from the git commit messages
Date: Sun, 21 Dec 2014 16:09:15 +0100

Hi,

the two attached patches make sure that the ChangeLog file is generated
by the git commit messages.  I've attached them as compressed .xz
instead of sending them directly to the mailing list as the first commit
moves around a lot of lines and it is more than 1M once uncompressed.

The first commit is generated mechanically, after I cleaned up a bit the
old ChangeLog files (mostly to make sure everything is indented with
tabs instead of spaces) and fixed the file names to include the parent
directory where they were included.

Then I've used these few python lines to sort it:

##############################################################
import sys

records = []
current = ''
for line in sys.stdin:
    if line != '\n' and line[0] != '\t':
        if current:
            records.append(current)
        current = line
    else:
        current = current + line
if current:
    records.append(current)

records.sort()
for i in reversed(records):
    print i,
##############################################################

Cheers,
Giuseppe

Attachment: 0001-merge-ChangeLog-files-in-ChangeLog-2014-12-10.patch.xz
Description: application/xz

Attachment: 0002-Generate-distributed-ChangeLog-from-git-log.patch.xz
Description: application/xz


reply via email to

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