tree-walk: convert tree_entry_extract() to use struct object_id
Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
7d924c9139
commit
ce6663a9da
@@ -13,11 +13,11 @@ struct tree_desc {
|
||||
unsigned int size;
|
||||
};
|
||||
|
||||
static inline const unsigned char *tree_entry_extract(struct tree_desc *desc, const char **pathp, unsigned int *modep)
|
||||
static inline const struct object_id *tree_entry_extract(struct tree_desc *desc, const char **pathp, unsigned int *modep)
|
||||
{
|
||||
*pathp = desc->entry.path;
|
||||
*modep = desc->entry.mode;
|
||||
return desc->entry.oid->hash;
|
||||
return desc->entry.oid;
|
||||
}
|
||||
|
||||
static inline int tree_entry_len(const struct name_entry *ne)
|
||||
|
||||
Reference in New Issue
Block a user