[Top][All Lists]

[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

* (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.
---     |    4 +++-
 lib/git-log-fix |    8 ++++++++
 2 files changed, 11 insertions(+), 1 deletions(-)
 create mode 100644 lib/git-log-fix


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?


diff --git a/ b/
index b11e8fd..2163c6f 100644
--- a/
+++ b/
@@ -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.
+# Date:   Thu Feb 16 22:29:32 2012 +0100
+# Fix a typo.
+s| bur | bug |

reply via email to

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