зеркало из https://github.com/microsoft/git.git
Make fsck reachability avoid doing unnecessary work for
parents that we reach multiple ways. This doesn't matter right now. It _will_ matter once we have complex revision graphs.
This commit is contained in:
Родитель
d9839e0305
Коммит
2845dbe4a4
|
@ -108,6 +108,9 @@ static void mark_reachable(struct revision *rev)
|
|||
{
|
||||
struct parent *p = rev->parent;
|
||||
|
||||
/* If we've been here already, don't bother */
|
||||
if (rev->flags & REACHABLE)
|
||||
return;
|
||||
rev->flags |= REACHABLE | USED;
|
||||
while (p) {
|
||||
mark_reachable(p->parent);
|
Загрузка…
Ссылка в новой задаче