Fix commit lookup in DiffCommand