When you check someone else's commits most of the time you read code parts that changed on next commits but still you need to read old versions. what I mean is 

first commit 

`function a(){
 //some wrong code  

}`

second commit 

`function b(){
 //fixed code
}`

User fixed his code already on next commit but I have to read this code part twice which is time consuming. How can I read only final version of files from multiple commits instead going through all commits ?