Specially handle trivial merge commits.
-
A trivial merge commit is a merge commit that has two parents, and the content of the merge commit is identical to one of the parents.
-
Since we are trying to authenticate a version of the repository, if two commits (
U
andA
) have identical content (modulo meta-data), and one of them is considered authenticated (A
), then the content of the other commit (U
) is by definition also authenticated even ifU
can't be authenticated. -
Detect and handle this trivial case, which is sometimes (but not always!) created by GitHub's "Merge pull request" workflow.
-
See #32.
-