Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions tree-walk.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,14 @@ struct traverse_info {
};

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

/**
* Generate the full pathname of a tree entry based from the root of the
Expand Down
Loading