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
baad182c
Commit
baad182c
authored
Mar 28, 2011
by
Carlos Martín Nieto
Committed by
Vicent Marti
Mar 29, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add GIT_EEXISTS error code
Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
parent
6dcb09b5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
include/git2/common.h
+3
-0
src/errors.c
+2
-1
No files found.
include/git2/common.h
View file @
baad182c
...
...
@@ -161,6 +161,9 @@
/** This feature has not been implemented yet */
#define GIT_ENOTIMPLEMENTED (GIT_ERROR - 22)
/** A refernce or object of the same name already exists */
#define GIT_EEXISTS (GIT_ERROR - 23)
GIT_BEGIN_DECL
typedef
struct
{
...
...
src/errors.c
View file @
baad182c
...
...
@@ -28,7 +28,8 @@ static struct {
{
GIT_EINVALIDPATH
,
"The path is invalid"
},
{
GIT_EREVWALKOVER
,
"The revision walker is empty; there are no more commits left to iterate"
},
{
GIT_EINVALIDREFSTATE
,
"The state of the reference is not valid"
},
{
GIT_ENOTIMPLEMENTED
,
"This feature has not been implemented yet"
}
{
GIT_ENOTIMPLEMENTED
,
"This feature has not been implemented yet"
},
{
GIT_EEXISTS
,
"A reference with this name already exists"
}
};
const
char
*
git_strerror
(
int
num
)
...
...
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