revparse: enhance parsing engine

This commit is contained in:
nulltoken 2012-07-15 00:46:26 +02:00
parent d448392e5d
commit b8748c1217
2 changed files with 632 additions and 474 deletions

View File

@ -98,6 +98,13 @@ struct git_repository {
* export */
void git_object__free(void *object);
GIT_INLINE(int) git_object__dup(git_object **dest, git_object *source)
{
git_cached_obj_incref(source);
*dest = source;
return 0;
}
int git_object__resolve_to_type(git_object **obj, git_otype type);
int git_oid__parse(git_oid *oid, const char **buffer_out, const char *buffer_end, const char *header);

File diff suppressed because it is too large Load Diff