/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Initialize tree descriptors with a helper function rather than by hand.
[git/git.git]
/
reachable.c
diff --git
a/reachable.c
b/reachable.c
index
01760d7
..
ff3dd34
100644
(file)
--- a/
reachable.c
+++ b/
reachable.c
@@
-42,8
+42,7
@@
static void process_tree(struct tree *tree,
me.elem = name;
me.elem_len = strlen(name);
- desc.buf = tree->buffer;
- desc.size = tree->size;
+ init_tree_desc(&desc, tree->buffer, tree->size);
while (tree_entry(&desc, &entry)) {
if (S_ISDIR(entry.mode))