Skip to content

Commit f2cc60c

Browse files
committed
Merge branch 'en/get-tree-entry-doc'
Doc update. * en/get-tree-entry-doc: tree-walk.h: fix incorrect API comment
2 parents 38af977 + f62977b commit f2cc60c

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tree-walk.h

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,14 @@ struct traverse_info {
176176
};
177177

178178
/**
179-
* Find an entry in a tree given a pathname and the sha1 of a tree to
180-
* search. Returns 0 if the entry is found and -1 otherwise. The third
181-
* and fourth parameters are set to the entry's sha1 and mode respectively.
182-
*/
183-
int get_tree_entry(struct repository *, const struct object_id *, const char *, struct object_id *, unsigned short *);
179+
* Walk trees starting with "tree_oid" to find the entry for "name", and
180+
* return the the object name and the mode of the found entry via the
181+
* "oid" and "mode" parameters. Return 0 if the entry is found, and -1
182+
* otherwise.
183+
*/
184+
int get_tree_entry(struct repository *repo, const struct object_id *tree_oid,
185+
const char *name, struct object_id *oid,
186+
unsigned short *mode);
184187

185188
/**
186189
* Generate the full pathname of a tree entry based from the root of the

0 commit comments

Comments
 (0)