dbd6dd Simplify diff calculation

2 files Authored by Carlos Mogas da Silva 7 years ago , Committed by Pierre-Yves Chibon 7 years ago ,
    Simplify diff calculation
    
    The old code had 2 diff atributions and I could not see any reason for them.
    Also, instead of getting the parent via revparse_single, just get it from the attributes.
    
    Merges https://pagure.io/pagure/pull-request/2422
    
        
file modified
+1 -4
file modified
+3 -6