Improve targeting of reverted commits