range-diff: adjust the output of the commit pairs