Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Reverts, specially in core are done not only to revert the code, but also to do attribution correctly.
As Tim suggested, let's do not consider those commits.
There is also a related pending feature that could solve this: exclude some commits by hash, which could be less error-prone.