-
revwalk: fix uninteresting revs sometimes not limiting graphwalk · 54fd80e3
When we want to limit our graphwalk, we use the heuristic of checking whether the newest limiting (uninteresting) revision is newer than the oldest interesting revision. We do so by inspecting whether the first item's commit time of the user-supplied list of revisions is newer than the last added interesting revision. This is wrong though, as the user supplied list is in no way guaranteed to be sorted by increasing commit dates. This could lead us to abort the revwalk early before applying all relevant limiting revisions, outputting revisions which should in fact have been hidden. Fix the heuristic by instead checking whether _any_ of the limiting commits was made earlier than the last interesting commit. Add a test.
Patrick Steinhardt committed
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
basic.c | Loading commit data... | |
hidecb.c | Loading commit data... | |
mergebase.c | Loading commit data... | |
signatureparsing.c | Loading commit data... | |
simplify.c | Loading commit data... |