Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
rev-list: fix process_tree() conversion.
author
Linus Torvalds
<torvalds@osdl.org>
Mon, 5 Jun 2006 18:44:36 +0000
(11:44 -0700)
committer
Junio C Hamano
<junkio@cox.net>
Mon, 5 Jun 2006 21:54:17 +0000
(14:54 -0700)
The tree-walking conversion of the "process_tree()" function
broke packing by using an unrelated variable from outer scope.
Signed-off-by: Junio C Hamano <junkio@cox.net>
builtin-rev-list.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
2befe6f
)
diff --git
a/builtin-rev-list.c
b/builtin-rev-list.c
index 17c04b962d82701ee6fd17ad15e368e1c283af25..e885624255ac8e1007df797d339e3e81020f95a2 100644
(file)
--- a/
builtin-rev-list.c
+++ b/
builtin-rev-list.c
@@
-135,9
+135,9
@@
static struct object_list **process_tree(struct tree *tree,
while (tree_entry(&desc, &entry)) {
if (S_ISDIR(entry.mode))
- p = process_tree(lookup_tree(entry.sha1), p, &me,
name
);
+ p = process_tree(lookup_tree(entry.sha1), p, &me,
entry.path
);
else
- p = process_blob(lookup_blob(entry.sha1), p, &me,
name
);
+ p = process_blob(lookup_blob(entry.sha1), p, &me,
entry.path
);
}
free(tree->buffer);
tree->buffer = NULL;