diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-14 03:26:45 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-04-14 03:26:45 +0200 |
| commit | a05416951e15a2fea4036ddf502f44504bb53faa (patch) | |
| tree | 0baec585b44ad42cfa019fc2ba9ae3b2e0b35eeb /src/diff_file.h | |
| parent | 623fbd93f1a7538df0c9a433df68f87bbd58b803 (diff) | |
| download | libgit2-a05416951e15a2fea4036ddf502f44504bb53faa.tar.gz | |
revwalk: detect when we're out of interesting commitscmn/odd-slowdown
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.
Diffstat (limited to 'src/diff_file.h')
0 files changed, 0 insertions, 0 deletions
