summaryrefslogtreecommitdiff
path: root/src/object.h
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-10-13 13:12:17 +0200
committerPatrick Steinhardt <ps@pks.im>2018-06-22 09:50:07 +0200
commit73bd64110d16c06833f854a8178176355f249a61 (patch)
treec180e5e1fd0746139596156b025cd15e87ad305b /src/object.h
parentaf5cd936faa688cde9b31d8858c32acac4d2adf5 (diff)
downloadlibgit2-73bd64110d16c06833f854a8178176355f249a61.tar.gz
tree: implement function to parse raw data
Currently, parsing objects is strictly tied to having an ODB object available. This makes it hard to parse an object when all that is available is its raw object and size. Furthermore, hacking around that limitation by directly creating an ODB structure either on stack or on heap does not really work that well due to ODB objects being reference counted and then automatically free'd when reaching a reference count of zero. Implement a function `git_tree__parse_raw` to parse a tree object from a pair of `data` and `size`.
Diffstat (limited to 'src/object.h')
0 files changed, 0 insertions, 0 deletions