/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
add object_as_type helper for casting objects
[git/git.git]
/
object.h
diff --git
a/object.h
b/object.h
index
8020ace
..
5e8d8ee
100644
(file)
--- a/
object.h
+++ b/
object.h
@@
-81,6
+81,8
@@
struct object *lookup_object(const unsigned char *sha1);
extern void *create_object(const unsigned char *sha1, void *obj);
+void *object_as_type(struct object *obj, enum object_type type, int quiet);
+
/*
* Returns the object, having parsed it to find out what it is.
*