Never had the occasion to get into the "diminished value" thing, but as far as repair of damage to my vehicle, it depends on the quality of the repair.
A few, very few, body shops can make repairs that are not easily detected. I once looked at a vehicle that had a "Prior Paint Work" tag and I...