summaryrefslogtreecommitdiff
path: root/include/git2/commit.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-29 13:36:36 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-30 22:45:13 -0500
commitfc1a3f456540dfc4dc143b322b943a4264658d56 (patch)
tree3404931f494be61997af4fc9fe9034884169d73f /include/git2/commit.h
parent6fdb1b2f55da9593576b096ee2eecce61995fb51 (diff)
downloadlibgit2-fc1a3f456540dfc4dc143b322b943a4264658d56.tar.gz
object: return GIT_EINVALID on parse errors
Return `GIT_EINVALID` on parse errors so that direct callers of parse functions can determine when there was a failure to parse the object. The object parser functions will swallow this error code to prevent it from propagating down the chain to end-users. (`git_merge` should not return `GIT_EINVALID` when a commit it tries to look up is not valid, this would be too vague to be useful.) The only public function that this affects is `git_signature_from_buffer`, which is now documented as returning `GIT_EINVALID` when appropriate.
Diffstat (limited to 'include/git2/commit.h')
0 files changed, 0 insertions, 0 deletions