contrib/gcc-changelog/git_check_commit.py: Implement --num-commits
commit0e12aa6c26a9566f5b1a9b6d111a9e27507e213d
authorKen Matsui <kmatsui@gcc.gnu.org>
Wed, 28 Feb 2024 21:00:23 +0000 (28 13:00 -0800)
committerKen Matsui <kmatsui@gcc.gnu.org>
Mon, 6 May 2024 17:08:33 +0000 (6 10:08 -0700)
treeb09b2e0b728117ee06428eb030e8f96df9078247
parent80c03ac8041340b29325f86ed58ea8bd40a55b99
contrib/gcc-changelog/git_check_commit.py: Implement --num-commits

This patch implements a --num-commits (-n) flag for shorthand for
the range of hash~N..hash commits.

contrib/ChangeLog:

* gcc-changelog/git_check_commit.py: Implement --num-commits.

Signed-off-by: Ken Matsui <kmatsui@gcc.gnu.org>
Reviewed-by: Patrick Palka <ppalka@redhat.com>
Reviewed-by: Jason Merrill <jason@redhat.com>
contrib/gcc-changelog/git_check_commit.py