summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-05-24 14:55:34 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-01 18:54:56 +0200
commitcdd9fd473ec96766897fab73c1837c178619409f (patch)
treef6c1ed1d78b2bbf9293c4bcb641a7374039e05f3 /include/git2
parentf7e59c4dcf46e0815ab0e7d435fd16755fdf616c (diff)
downloadlibgit2-cdd9fd473ec96766897fab73c1837c178619409f.tar.gz
Allow read_tree_internal to return an error code
There are two reasons why read_tree_internal might return a NULL tree. The first one is a corrupt index, but the second one is an invalidated TREE extension. Up to now, its only way to communicate with its caller was through the return value being NULL or not. Allow read_tree_internal to report its exit status independently from the tree pointer. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Diffstat (limited to 'include/git2')
0 files changed, 0 insertions, 0 deletions