MCPcopy Index your code
hub / github.com/git/git / tree_entry_extract

Function tree_entry_extract

tree-walk.h:52–57  ·  view source on GitHub ↗

* Decode the entry currently being visited (the one pointed to by * `tree_desc's` `entry` member) and return the sha1 of the entry. The * `pathp` and `modep` arguments are set to the entry's pathname and mode * respectively. */

Source from the content-addressed store, hash-verified

50 * respectively.
51 */
52static inline const struct object_id *tree_entry_extract(struct tree_desc *desc, const char **pathp, unsigned short *modep)
53{
54 *pathp = desc->entry.path;
55 *modep = desc->entry.mode;
56 return &desc->entry.oid;
57}
58
59/**
60 * Calculate the length of a tree entry's pathname. This utilizes the

Callers 5

emit_pathFunction · 0.85
find_tree_entryFunction · 0.85
fsck_treeFunction · 0.85
match_treesFunction · 0.85
splice_treeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected