This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=573be899535afa096a28f449a9973decfee90473 commit 573be899535afa096a28f449a9973decfee90473 Author: Guillem Jover <[email protected]> AuthorDate: Thu Mar 3 01:23:41 2022 +0100 build: Support specifying previous and next tags to gen-changelog This helps testing the script with different version ranges. --- build-aux/gen-changelog | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/build-aux/gen-changelog b/build-aux/gen-changelog index f1e950df1..9697a7d43 100755 --- a/build-aux/gen-changelog +++ b/build-aux/gen-changelog @@ -152,14 +152,18 @@ my $log_format = 'Title: %s%n' . '%(trailers:only,unfold)%N'; -my $tag_prev = qx(git describe --abbrev=0); +my $tag_prev = $ARGV[0]; +my $tag_next = $ARGV[1] // ""; + +$tag_prev //= qx(git describe --abbrev=0); chomp $tag_prev; my $fh_gitlog; spawn( exec => [ - qw(git log --first-parent), "--format=tformat:$log_format", "$tag_prev.." + qw(git log --first-parent), "--format=tformat:$log_format", + "$tag_prev..$tag_next" ], to_pipe => \$fh_gitlog, ); -- Dpkg.Org's dpkg

