summaryrefslogtreecommitdiff
path: root/tree-walk.h
diff options
context:
space:
mode:
authorbrian m. carlson <sandals@crustytoothpaste.net>2016-04-17 23:10:40 +0000
committerJunio C Hamano <gitster@pobox.com>2016-04-25 14:26:28 -0700
commitce6663a9da77c0adc0743e801946dc1a49f4a186 (patch)
treebd0fb10fb8133678b53079732fb54e266dea63b2 /tree-walk.h
parent7d924c9139e33e7599d7aed0446e634c427a5f15 (diff)
downloadgit-ce6663a9da77c0adc0743e801946dc1a49f4a186.tar.gz
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>
Diffstat (limited to 'tree-walk.h')
-rw-r--r--tree-walk.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tree-walk.h b/tree-walk.h
index 58f31f5596..97a7d6957e 100644
--- a/tree-walk.h
+++ b/tree-walk.h
@@ -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)