• Show log

    Commit

  • Hash : 98e484b9
    Author : Carlos Martín Nieto
    Date : 2015-04-14T03:26:45

    revwalk: detect when we're out of interesting commits
    
    When walking backwards and marking parents uninteresting, make sure we
    detect when the list of commits we have left has run out of
    uninteresting commits so we can stop marking commits as
    uninteresting. Failing to do so can mean that we walk the whole history
    marking everything uninteresting, which eats up time, CPU and IO for
    with useless work.
    
    While pre-marking does look for this, we still need to check during the
    main traversal as there are setups for which pre-marking does not leave
    enough information in the commits. This can happen if we push a commit
    and hide its parent.