automake-patches
[Top][All Lists]
Advanced

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

[PATCH] maint: support amending the generated ChangeLog, and fix a typo


From: Peter Rosin
Subject: [PATCH] maint: support amending the generated ChangeLog, and fix a typo
Date: Fri, 17 Feb 2012 08:55:23 +0100

* Makefile.am (gitlog_to_changelog_options): Add support for
amending the generated ChangeLog.
* lib/git-log-fix: New file with things to amend to the generated
ChangeLog, starting with a fix for a typo in v1.11-1963-g3b369e6
from yesterday.
---
 Makefile.am     |    4 +++-
 lib/git-log-fix |    8 ++++++++
 2 files changed, 11 insertions(+), 1 deletions(-)
 create mode 100644 lib/git-log-fix

Hi!

I noticed a typo in a commit message and thought I'd start the
ChangeLog amend thing.  Is it ok to put the fixes in lib/git-log-fix?
I didn't think the fixes should be distributed, since the ChangeLog
is already generated in that case and "git log" is kind of useless
without a repo.  Also, other projects don't seem to do it...

Ok for master?

Or should this be two patches, with the infrastructure commited to
maint and the fixlet commited to master?

Cheers,
Peter

diff --git a/Makefile.am b/Makefile.am
index b11e8fd..2163c6f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,7 +117,9 @@ recheck:
 ##
 
 gitlog_to_changelog_command = $(PERL) $(srcdir)/lib/gitlog-to-changelog
-gitlog_to_changelog_options = --since='2011-12-28 00:00:00' \
+gitlog_to_changelog_fixes = $(srcdir)/lib/git-log-fix
+gitlog_to_changelog_options = --amend=$(gitlog_to_changelog_fixes) \
+                              --since='2011-12-28 00:00:00' \
                               --no-cluster --format '%s%n%n%b'
 
 # Automatic generation of the ChangeLog from git history.
diff --git a/lib/git-log-fix b/lib/git-log-fix
new file mode 100644
index 0000000..561181d
--- /dev/null
+++ b/lib/git-log-fix
@@ -0,0 +1,8 @@
+# This file is expected to be used via gitlog-to-changelog's --amend=FILE
+# option.  It specifies what changes to make to each given SHA1's commit
+# log and metadata, using Perl-eval'able expressions.
+
+3b369e6bbe0fb6d7359398935706c87dd9375cb6
+# Date:   Thu Feb 16 22:29:32 2012 +0100
+# Fix a typo.
+s| bur | bug |
-- 
1.7.9




reply via email to

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