Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
25dbcf34
Commit
25dbcf34
authored
Jul 27, 2015
by
Michael Procter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make giterr_detach no longer public
parent
c2f17bda
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
13 deletions
+1
-13
include/git2/errors.h
+0
-12
src/errors.c
+1
-1
No files found.
include/git2/errors.h
View file @
25dbcf34
...
...
@@ -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
...
...
src/errors.c
View file @
25dbcf34
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment