Fix revert so only unchanged files revert