Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 4c1e2e1d31d9f9ceab9a194e1e9b5f2bc30798f1
      
https://github.com/Perl/perl5/commit/4c1e2e1d31d9f9ceab9a194e1e9b5f2bc30798f1
  Author: Graham Knop <ha...@haarg.org>
  Date:   2022-01-19 (Wed, 19 Jan 2022)

  Changed paths:
    M t/porting/authors.t

  Log Message:
  -----------
  fix commit calculations in authors porting test

For pull requests, the current commit is a merge commit simulated by
github. The first parent will be from blead - anything that has been
commited since the creation of the branch. The second parent will be the
last commit on the branch, which is what we want to test.

The commit range should be all of the commits in the second parent,
excluseding the first parent. We can use HEAD^1 and HEAD^2 for these.
The merge-base does not need to be precomputed, since the .. in the
commit range does that for us.


Reply via email to