summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 01796b0)
raw | patch | inline | side by side (parent: 01796b0)
author | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 17 Apr 2005 19:09:20 +0000 (12:09 -0700) | ||
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | |
Sun, 17 Apr 2005 19:09:20 +0000 (12:09 -0700) |
It used to have its own specialized version for marking the
sub-reachability bits.
sub-reachability bits.
rev-tree.c | patch | blob | history |
diff --git a/rev-tree.c b/rev-tree.c
index 57fb47edc6d59ed2ec912ea0a8afeda879de5a39..fe114ab3604d04fd002011fdc73573f9b5a67eed 100644 (file)
--- a/rev-tree.c
+++ b/rev-tree.c
fclose(file);
}
-static void mark_sha1_path(struct revision *rev, unsigned int mask)
-{
- struct parent *p;
-
- if (rev->flags & mask)
- return;
-
- rev->flags |= mask;
- p = rev->parent;
- while (p) {
- mark_sha1_path(p->parent, mask);
- p = p->next;
- }
-}
-
/*
* Some revisions are less interesting than others.
*
* Now we have the maximal tree. Walk the different sha files back to the root.
*/
for (i = 0; i < nr; i++)
- mark_sha1_path(lookup_rev(sha1[i]), 1 << i);
+ mark_reachable(lookup_rev(sha1[i]), 1 << i);
/*
* Now print out the results..