From f4a936b56a6bb0cbe6d5f4b5c7c73066ad2f3197 Mon Sep 17 00:00:00 2001 From: Vicent Marti Date: Wed, 11 May 2011 00:35:05 +0300 Subject: Bring back `git_strerror` We cannot totally deprecate this until the new error handling mechanisms are all in place. --- include/git2/errors.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'include/git2/errors.h') diff --git a/include/git2/errors.h b/include/git2/errors.h index fde0dc73d..47b0e240f 100644 --- a/include/git2/errors.h +++ b/include/git2/errors.h @@ -40,6 +40,18 @@ GIT_BEGIN_DECL */ GIT_EXTERN(const char *) git_lasterror(void); +/** + * strerror() for the Git library + * + * Get a string description for a given error code. + * NOTE: This method will be eventually deprecated in favor + * of the new `git_lasterror`. + * + * @param num The error code to explain + * @return a string explaining the error code + */ +GIT_EXTERN(const char *) git_strerror(int num); + /** @} */ GIT_END_DECL #endif -- cgit v1.2.1