]> git.donarmstrong.com Git - lilypond.git/commitdiff
ignore ChangeLog
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Oct 2006 18:02:07 +0000 (20:02 +0200)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 28 Oct 2006 18:02:07 +0000 (20:02 +0200)
buildscripts/git-update-changelog.py

index e45cec39a3c560ea08780aefdb51f578b7fa7959..c24f13d381ea10d83c57125fda2724dd8ee91a2a 100644 (file)
@@ -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]):