From a0d28219eb870f5b49fe022321ee4e2db05bf0b3 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sat, 28 Oct 2006 20:02:07 +0200 Subject: [PATCH] ignore ChangeLog --- buildscripts/git-update-changelog.py | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/buildscripts/git-update-changelog.py b/buildscripts/git-update-changelog.py index e45cec39a3..c24f13d381 100644 --- a/buildscripts/git-update-changelog.py +++ b/buildscripts/git-update-changelog.py @@ -1,3 +1,5 @@ +#!/usr/bin/python + import time import os import re @@ -71,21 +73,6 @@ def changelog_body (commit): s = s.replace ('\n', '\n\t') s += '\n' return s - -def to_change_log (commit, last_commit): - - s = '' - - date = commit.date[:3] - if (last_commit == None - or commit.author != last_commit.author - or commit.date[:3] != last_commit.date[:3]): - - s += header (last_commit) - - s += changelog_body (commit) - - return s def find_last_checked_in_commit (log): m = re.search (r'^(\d+-\d+\d+)[^\n]+\n*\t\*git commit ([a-f0-9]+):', log) @@ -126,6 +113,9 @@ def main (): log = log[len (first):] for c in commits: + if c.touched_files () == ['ChangeLog']: + continue + if (last_commit and c.author != last_commit.author and c.date[:3] != last_commit.date[:3]): -- 2.39.5