Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Make "rev-tree.c" use the new-and-improved "mark_reachable()"
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.
rev-tree.c
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
01796b0
)
diff --git
a/rev-tree.c
b/rev-tree.c
index 57fb47edc6d59ed2ec912ea0a8afeda879de5a39..fe114ab3604d04fd002011fdc73573f9b5a67eed 100644
(file)
--- a/
rev-tree.c
+++ b/
rev-tree.c
@@
-52,21
+52,6
@@
static void read_cache_file(const char *path)
fclose(file);
}
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.
*
/*
* Some revisions are less interesting than others.
*
@@
-142,7
+127,7
@@
int main(int argc, char **argv)
* Now we have the maximal tree. Walk the different sha files back to the root.
*/
for (i = 0; i < nr; i++)
* 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..
/*
* Now print out the results..