[PATCH] Teach mklog to reference PRs.

Martin Liška mliska@suse.cz
Thu Aug 1 13:09:00 GMT 2019


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)

contrib/ChangeLog:

2019-08-01  Martin Liska  <mliska@suse.cz>

        PR lto/91307
        PR c/12345
	* mklog:

gcc/testsuite/ChangeLog:

2019-08-01  Martin Liska  <mliska@suse.cz>

        PR lto/91307
        PR c/12345
	* g++.dg/lto/pr89330_0.C:

As seen it puts the references to each ChangeLog file and to
the first line which will become a commit message.

Thoughts?
Thanks,
Martin

contrib/ChangeLog:

2019-08-01  Martin Liska  <mliska@suse.cz>

	* mklog: Use argparse as it's much easier to use.
	Add new option -b that can refence PRs.
---
 contrib/mklog | 80 +++++++++++++++++++++------------------------------
 1 file changed, 32 insertions(+), 48 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Teach-mklog-to-reference-PRs.patch
Type: text/x-patch
Size: 4171 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190801/43863edc/attachment.bin>


More information about the Gcc-patches mailing list