summaryrefslogtreecommitdiff
path: root/include/git2/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/errors.h')
-rw-r--r--include/git2/errors.h12
1 files changed, 12 insertions, 0 deletions
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