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
978a4ed5
Commit
978a4ed5
authored
Feb 20, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make git_oid_equal a non-inline API
parent
2dc49ea9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
include/git2/oid.h
+1
-4
src/oid.c
+5
-0
No files found.
include/git2/oid.h
View file @
978a4ed5
...
...
@@ -167,10 +167,7 @@ GIT_EXTERN(int) git_oid_cmp(const git_oid *a, const git_oid *b);
* @param b second oid structure.
* @return true if equal, false otherwise
*/
GIT_INLINE
(
int
)
git_oid_equal
(
const
git_oid
*
a
,
const
git_oid
*
b
)
{
return
!
git_oid_cmp
(
a
,
b
);
}
GIT_EXTERN
(
int
)
git_oid_equal
(
const
git_oid
*
a
,
const
git_oid
*
b
);
/**
* Compare the first 'len' hexadecimal characters (packets of 4 bits)
...
...
src/oid.c
View file @
978a4ed5
...
...
@@ -179,6 +179,11 @@ int git_oid_cmp(const git_oid *a, const git_oid *b)
return
git_oid__cmp
(
a
,
b
);
}
int
git_oid_equal
(
const
git_oid
*
a
,
const
git_oid
*
b
)
{
return
(
git_oid__cmp
(
a
,
b
)
==
0
);
}
int
git_oid_ncmp
(
const
git_oid
*
oid_a
,
const
git_oid
*
oid_b
,
size_t
len
)
{
const
unsigned
char
*
a
=
oid_a
->
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