bug-gnulib
[Top][All Lists]
Advanced

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

Re: yet another git trick


From: Jim Meyering
Subject: Re: yet another git trick
Date: Wed, 28 May 2008 19:35:12 +0200

Paolo Bonzini <address@hidden> 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.




reply via email to

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