> Hmm, that's what I use.  If you go to the diff buffer that (by default)
> is popped up while committing [*], hitting C (magit-commit-add-log) on a
> hunk should add an entry to the commit message buffer.
>
> What happens on your end?  (And what version of Magit are you using?)

Thanks for the pointer about magit-commit-add-log! It indeed works, but
the binding was shadowed by my modal bindings in boon-mode. I usually
access the magit commands from transient magit help menu.
magit-commit-add-log is not listed there.

Best,
Ihor

Kyle Meyer <k...@kyleam.com> writes:

> Ihor Radchenko writes:
>
>> By the way, do you know how to automatically format changelog entries in
>> magit. The suggestion from contribute page seems outdated (or I miss
>> something):
>>
>>> If you are using magit.el in Emacs, the ChangeLog for such entries are
>>> easily produced by pressing C in the diff listing.
>
> Hmm, that's what I use.  If you go to the diff buffer that (by default)
> is popped up while committing [*], hitting C (magit-commit-add-log) on a
> hunk should add an entry to the commit message buffer.
>
> What happens on your end?  (And what version of Magit are you using?)
>
>
>   [*] I haven't followed it closely, but Noam Postavsky has worked on
>       improving changelog generation in Emacs (shipped with Emacs 27, I
>       believe) and then using that in Magit (in-flight PR).  IIUC the
>       end result is that the full changelog skeleton could be inserted
>       by calling a single command from the commit message buffer.  (And
>       calling the command manually could be avoided by adding it to
>       git-commit-setup-hook.)
>
>       https://debbugs.gnu.org/cgi/bugreport.cgi?bug=16301#11
>       https://github.com/magit/magit/issues/2931
>       https://github.com/magit/magit/pull/3928

Reply via email to