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
203d5b0e
Commit
203d5b0e
authored
Apr 29, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some cleanups
Removed useless prototype and renamed object typecast functions declaration macro.
parent
e4af0f00
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
13 deletions
+4
-13
include/git2/oid.h
+0
-9
src/blob.c
+1
-1
src/object.h
+1
-1
src/tag.c
+1
-1
src/tree.c
+1
-1
No files found.
include/git2/oid.h
View file @
203d5b0e
...
...
@@ -145,15 +145,6 @@ GIT_EXTERN(void) git_oid_cpy(git_oid *out, const git_oid *src);
* @param b second oid structure.
* @return <0, 0, >0 if a < b, a == b, a > b.
*/
GIT_EXTERN
(
int
)
git_oid_compare
(
const
git_oid
*
oid_a
,
const
git_oid
*
oid_b
);
/**
* Compare two oid structures.
*
* @param a first oid structure.
* @param b second oid structure.
* @return <0, 0, >0 if a < b, a == b, a > b.
*/
GIT_EXTERN
(
int
)
git_oid_cmp
(
const
git_oid
*
a
,
const
git_oid
*
b
);
/**
...
...
src/blob.c
View file @
203d5b0e
...
...
@@ -15,7 +15,7 @@
#include "filter.h"
#include "buf_text.h"
GIT_OBJ
_WRAPPER
(
git_blob
,
GIT_OBJ_BLOB
)
GIT_OBJ
ECT__TYPED_FUNCTIONS
(
git_blob
,
GIT_OBJ_BLOB
)
const
void
*
git_blob_rawcontent
(
const
git_blob
*
blob
)
{
...
...
src/object.h
View file @
203d5b0e
...
...
@@ -28,7 +28,7 @@ int git_oid__parse(git_oid *oid, const char **buffer_out, const char *buffer_end
void
git_oid__writebuf
(
git_buf
*
buf
,
const
char
*
header
,
const
git_oid
*
oid
);
#define GIT_OBJ
_WRAPPER
(TYPE,OBJTYPE) \
#define GIT_OBJ
ECT__TYPED_FUNCTIONS
(TYPE,OBJTYPE) \
int TYPE##_lookup(TYPE **out, git_repository *repo, const git_oid *id) { \
return git_object_lookup((git_object **)out, repo, id, OBJTYPE); } \
int TYPE##_lookup_prefix(TYPE **out, git_repository *repo, const git_oid *id, size_t len) { \
...
...
src/tag.c
View file @
203d5b0e
...
...
@@ -15,7 +15,7 @@
#include "git2/signature.h"
#include "git2/odb_backend.h"
GIT_OBJ
_WRAPPER
(
git_tag
,
GIT_OBJ_TAG
)
GIT_OBJ
ECT__TYPED_FUNCTIONS
(
git_tag
,
GIT_OBJ_TAG
)
void
git_tag__free
(
void
*
_tag
)
{
...
...
src/tree.c
View file @
203d5b0e
...
...
@@ -11,7 +11,7 @@
#include "git2/repository.h"
#include "git2/object.h"
GIT_OBJ
_WRAPPER
(
git_tree
,
GIT_OBJ_TREE
)
GIT_OBJ
ECT__TYPED_FUNCTIONS
(
git_tree
,
GIT_OBJ_TREE
)
#define DEFAULT_TREE_SIZE 16
#define MAX_FILEMODE_BYTES 6
...
...
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