Code changes in site history

Is there a way to view the code in a historical version of my site? In our project we have a lot of custom codes. So, we need a tracking of the code changes that were published with each feature release.