On Mon, Nov 6, 2023 at 8:39 AM Florian Weimer via Gcc <gcc@gcc.gnu.org> wrote: > > Emacs has a very useful facility. You press “C-x 4 a” in a place where > you make changes, and the editor automatically opens the right ChangeLog > file and adds a draft entry to it, like this: > > 2023-11-06 Florian Weimer <fwei...@redhat.com> > > * c-opts.cc (c_common_post_options): █ > > Is there something like this that works with commit messages and > produces output compatible with GCC's expectations?
Yes contrib/git-commit-mklog.py . Which can also be used directly with git if you run `contrib/gcc-git-customization.sh`. This will install an alias so you can just do `git gcc-commit-mklog ....` and you will get a commit log with that part filled in. Thanks, Andrew > > Thanks, > Florian >