I'll integrate your changes with mine. On Mon, May 25, 2020 at 2:14 PM Martin Liška <mli...@suse.cz> wrote: > > On 5/23/20 11:39 PM, Jason Merrill via Gcc-patches wrote: > > This patch introduces a prepare-commit-msg hook that appends a ChangeLog > > skeleton to a commit message that doesn't already have one, and a 'git > > amend-mklog' command to amend and append a new ChangeLog skeleton (to be > > edited together with existing entries by hand). > > As mentioned in the previous email, I prefer to make it opt-in, not opt-out. > > So I'm suggesting the 'git commit-mklog' alias that add the skeleton to > a git commit message. > > I also changed the hook to use named variables. And I would like to preserve > the ending '# Please enter the commit message for your changes. Lines > starting' > section, so I use the mklog.py to put the skeleton to a proper place. > > Example: > > gcc/ChangeLog: > > * ipa-icf.c (make_pass_ipa_icf): > > # Please enter the commit message for your changes. Lines starting > # with '#' will be ignored, and an empty message aborts the commit. > # > # On branch me/add-prepare-commit-msg-hook > # Changes to be committed: > # modified: gcc/ipa-icf.c > # > > Thoughts? > Martin
Re: [PATCH RFC] gcc-git: Add prepare-commit-msg hook.
Jason Merrill via Gcc-patches Mon, 25 May 2020 12:51:31 -0700
- [PATCH RFC] gcc-git: Add prepare-commit-msg ... Jason Merrill via Gcc-patches
- Re: [PATCH RFC] gcc-git: Add prepare-co... Martin Liška
- Re: [PATCH RFC] gcc-git: Add prepar... Jason Merrill via Gcc-patches
- Re: [PATCH RFC] gcc-git: Add pr... Jason Merrill via Gcc-patches
- Re: [PATCH RFC] gcc-git: Ad... Martin Liška
- Re: [PATCH RFC] gcc-gi... Jason Merrill via Gcc-patches
- Re: [PATCH RFC] gc... Martin Liška
- Re: [PATCH RFC... Martin Liška
- Re: [PATCH RFC... Jason Merrill via Gcc-patches
- Re: [PATCH RFC... Martin Liška