mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-03 00:43:41 +00:00
Make giterr_detach no longer public
This commit is contained in:
parent
c2f17bda07
commit
25dbcf3499
@ -113,18 +113,6 @@ GIT_EXTERN(const git_error *) giterr_last(void);
|
||||
*/
|
||||
GIT_EXTERN(void) giterr_clear(void);
|
||||
|
||||
/**
|
||||
* Get the last error data and clear it.
|
||||
*
|
||||
* This copies the last error into the given `git_error` struct
|
||||
* and returns 0 if the copy was successful, leaving the error
|
||||
* cleared as if `giterr_clear` had been called.
|
||||
*
|
||||
* If there was no existing error in the library, -1 will be returned
|
||||
* and the contents of `cpy` will be left unmodified.
|
||||
*/
|
||||
GIT_EXTERN(int) giterr_detach(git_error *cpy);
|
||||
|
||||
/**
|
||||
* Set the error message string for this thread.
|
||||
*
|
||||
|
@ -116,7 +116,7 @@ void giterr_clear(void)
|
||||
#endif
|
||||
}
|
||||
|
||||
int giterr_detach(git_error *cpy)
|
||||
static int giterr_detach(git_error *cpy)
|
||||
{
|
||||
git_error *error = GIT_GLOBAL->last_error;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user