bpsizemore / pagure

Forked from pagure 7 years ago
Clone

36f21e4 When diffing the branches, do not browse master all the time, once is enough

Authored and Committed by pingou 7 years ago
    When diffing the branches, do not browse master all the time, once is enough
    
    We used to iterate through the branches, then browse master/HEAD then
    browse the branch to see if it has commits that aren't in master/HEAD.
    With this commit, we'll browse master/HEAD just once at the start, then
    iterate through the branches, skip the branch that is equivalent to
    master/HEAD and check the other to see if they have commits not present
    in master.
    
        
file modified
+23 -27