summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9839e0)
raw | patch | inline | side by side (parent: d9839e0)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 13 Apr 2005 19:35:08 +0000 (12:35 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Wed, 13 Apr 2005 19:35:08 +0000 (12:35 -0700) |
parents that we reach multiple ways.
This doesn't matter right now. It _will_ matter once we have
complex revision graphs.
This doesn't matter right now. It _will_ matter once we have
complex revision graphs.
fsck-cache.c | patch | blob | history |
diff --git a/fsck-cache.c b/fsck-cache.c
index bb2b867611894a6e5e8321366ab29fa6b8df6665..34c80811c94f64f0f6bf0201c9b5c6d39d014877 100644 (file)
--- a/fsck-cache.c
+++ b/fsck-cache.c
{
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);