Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Procter <michael@procter.org.uk>2015-07-27 11:59:07 +0300
committerMichael Procter <michael@procter.org.uk>2015-08-03 17:23:17 +0300
commit25dbcf34993cad3cdc3981f1ed394d3374fb640f (patch)
tree1813a9ec7e2ce2d011c0b0fe006b5fbc3901154f
parentc2f17bda074b2e5718456aed75fedd2196c8dc94 (diff)
Make giterr_detach no longer public
-rw-r--r--include/git2/errors.h12
-rw-r--r--src/errors.c2
2 files changed, 1 insertions, 13 deletions
diff --git a/include/git2/errors.h b/include/git2/errors.h
index e189e55f1..4698366d8 100644
--- a/include/git2/errors.h
+++ b/include/git2/errors.h
@@ -114,18 +114,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.
*
* This function is public so that custom ODB backends and the like can
diff --git a/src/errors.c b/src/errors.c
index 979602a2a..95c62176c 100644
--- a/src/errors.c
+++ b/src/errors.c
@@ -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;