Paolo Bonzini <[EMAIL PROTECTED]> wrote: > Newer versions of git have my patch for a prepare-commit-msg hook. > The hook modifies the commit message before it is shown in the editor. > This implementation of the hook does two things, which I found useful > for GNU projects: 1) build a commit message template based on modified > ChangeLog files; 2) comment out the "Conflicts:" part of the merge > commits, so that it is shown but not stored forever. > > Personally, I think this is a good alternative to making ChangeLog > files automatically from the VCS logs. > > Drop it in .git/hooks/prepare-commit-msg and make it executable!
Nice! Thanks for sharing. Now I need to do something similar for projects like coreutils that no longer keep ChangeLog under version control. Maybe run Ralf's vc-chlog, which generates a ChangeLog template from VC diffs.