mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
git_error: use full class name in public error API
Move to the `git_error` name in error-related functions, deprecating the `giterr` functions. This means, for example, that `giterr_last` is now `git_error_last`. The old names are retained for compatibility. This only updates the public API; internal API and function usage remains unchanged.
This commit is contained in:
@@ -296,8 +296,8 @@ GIT_EXTERN(int) git_commit_header_field(git_buf *out, const git_commit *commit,
|
||||
* Extract the signature from a commit
|
||||
*
|
||||
* If the id is not for a commit, the error class will be
|
||||
* `GITERR_INVALID`. If the commit does not have a signature, the
|
||||
* error class will be `GITERR_OBJECT`.
|
||||
* `GIT_ERROR_INVALID`. If the commit does not have a signature, the
|
||||
* error class will be `GIT_ERROR_OBJECT`.
|
||||
*
|
||||
* @param signature the signature block; existing content will be
|
||||
* overwritten
|
||||
|
||||
Reference in New Issue
Block a user