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
737406b7
Commit
737406b7
authored
Jun 14, 2011
by
Scott Chacon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix gid_ misspelling
parent
90412507
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/git2/oid.h
+2
-2
src/oid.c
+1
-1
No files found.
include/git2/oid.h
View file @
737406b7
...
@@ -97,7 +97,7 @@ GIT_EXTERN(void) git_oid_fmt(char *str, const git_oid *oid);
...
@@ -97,7 +97,7 @@ GIT_EXTERN(void) git_oid_fmt(char *str, const git_oid *oid);
GIT_EXTERN
(
void
)
git_oid_pathfmt
(
char
*
str
,
const
git_oid
*
oid
);
GIT_EXTERN
(
void
)
git_oid_pathfmt
(
char
*
str
,
const
git_oid
*
oid
);
/**
/**
* Format a gi
d
_oid into a newly allocated c-string.
* Format a gi
t
_oid into a newly allocated c-string.
* @param oid the oid structure to format
* @param oid the oid structure to format
* @return the c-string; NULL if memory is exhausted. Caller must
* @return the c-string; NULL if memory is exhausted. Caller must
* deallocate the string with free().
* deallocate the string with free().
...
@@ -144,7 +144,7 @@ GIT_EXTERN(int) git_oid_cmp(const git_oid *a, const git_oid *b);
...
@@ -144,7 +144,7 @@ GIT_EXTERN(int) git_oid_cmp(const git_oid *a, const git_oid *b);
* @param b second oid structure.
* @param b second oid structure.
* @return 0 in case of a match
* @return 0 in case of a match
*/
*/
GIT_EXTERN
(
int
)
gi
d
_oid_ncmp
(
unsigned
int
len
,
git_oid
*
a
,
git_oid
*
b
);
GIT_EXTERN
(
int
)
gi
t
_oid_ncmp
(
unsigned
int
len
,
git_oid
*
a
,
git_oid
*
b
);
/**
/**
* OID Shortener object
* OID Shortener object
...
...
src/oid.c
View file @
737406b7
...
@@ -193,7 +193,7 @@ int git_oid_ncmp_hex(unsigned int len, const unsigned char *a, const unsigned ch
...
@@ -193,7 +193,7 @@ int git_oid_ncmp_hex(unsigned int len, const unsigned char *a, const unsigned ch
return
memcmp
(
a
,
b
,
len
);
return
memcmp
(
a
,
b
,
len
);
}
}
int
gi
d
_oid_ncmp
(
unsigned
int
len
,
git_oid
*
a
,
git_oid
*
b
)
int
gi
t
_oid_ncmp
(
unsigned
int
len
,
git_oid
*
a
,
git_oid
*
b
)
{
{
return
git_oid_ncmp_raw
(
len
,
a
->
id
,
b
->
id
);
return
git_oid_ncmp_raw
(
len
,
a
->
id
,
b
->
id
);
}
}
...
...
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