On Thu, Aug 01, 2019 at 03:09:22PM +0200, Martin Liška wrote:
> Hi.
> 
> I use quite often mklog and then I manually write references
> to PRs. I would like to teach the script to do it for me.
> Example:
> 
> $ ./contrib/mklog /tmp/patch -b lto/91307,c/12345 > /tmp/changelog
> $ cat /tmp/changelog
> (PR lto/91307,c/12345)

Why this?  The whole ChangeLog entry should be the commit message,
so repeating it looks useless.

OT I'm actually quite annoyed by mklog repeating the date/name/email
for each changelog, I'd find it much more natural to print that and the
list of PRs once and then just those contrib/, gcc/testsuite/ etc.
snippets with prefixes (ideally without the ChangeLog: part that I also
routinely remove).  Or have mklog option to switch between those two
variants.

> contrib/ChangeLog:
> 
> 2019-08-01  Martin Liska  <mli...@suse.cz>
> 
>         PR lto/91307
>         PR c/12345

This looks wrong, even the PR lines should be prefixed by a tab, not 8
spaces.

And IMHO it would be useful if mklog could grab the list of PRs
automatically from the patch if there are any (as in, for any new tests
(added new */testsuite/* files) look for comments early in the file and
extract PR whatever/NNNNN references from there).

        Jakub

Reply via email to