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
7dcda3aa
Commit
7dcda3aa
authored
Apr 30, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
object: haha
parent
0b726701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/object_api.c
+6
-6
No files found.
src/object_api.c
View file @
7dcda3aa
...
...
@@ -48,12 +48,12 @@ git_repository *git_commit_owner(const git_commit *obj)
*/
int
git_tree_lookup
(
git_tree
**
out
,
git_repository
*
repo
,
const
git_oid
*
id
)
{
return
git_object_lookup
((
git_object
**
)
out
,
repo
,
id
,
GIT_OBJ_
COMMIT
);
return
git_object_lookup
((
git_object
**
)
out
,
repo
,
id
,
GIT_OBJ_
TREE
);
}
int
git_tree_lookup_prefix
(
git_tree
**
out
,
git_repository
*
repo
,
const
git_oid
*
id
,
size_t
len
)
{
return
git_object_lookup_prefix
((
git_object
**
)
out
,
repo
,
id
,
len
,
GIT_OBJ_
COMMIT
);
return
git_object_lookup_prefix
((
git_object
**
)
out
,
repo
,
id
,
len
,
GIT_OBJ_
TREE
);
}
void
git_tree_free
(
git_tree
*
obj
)
...
...
@@ -77,12 +77,12 @@ git_repository *git_tree_owner(const git_tree *obj)
*/
int
git_tag_lookup
(
git_tag
**
out
,
git_repository
*
repo
,
const
git_oid
*
id
)
{
return
git_object_lookup
((
git_object
**
)
out
,
repo
,
id
,
GIT_OBJ_
COMMIT
);
return
git_object_lookup
((
git_object
**
)
out
,
repo
,
id
,
GIT_OBJ_
TAG
);
}
int
git_tag_lookup_prefix
(
git_tag
**
out
,
git_repository
*
repo
,
const
git_oid
*
id
,
size_t
len
)
{
return
git_object_lookup_prefix
((
git_object
**
)
out
,
repo
,
id
,
len
,
GIT_OBJ_
COMMIT
);
return
git_object_lookup_prefix
((
git_object
**
)
out
,
repo
,
id
,
len
,
GIT_OBJ_
TAG
);
}
void
git_tag_free
(
git_tag
*
obj
)
...
...
@@ -105,12 +105,12 @@ git_repository *git_tag_owner(const git_tag *obj)
*/
int
git_blob_lookup
(
git_blob
**
out
,
git_repository
*
repo
,
const
git_oid
*
id
)
{
return
git_object_lookup
((
git_object
**
)
out
,
repo
,
id
,
GIT_OBJ_
COMMIT
);
return
git_object_lookup
((
git_object
**
)
out
,
repo
,
id
,
GIT_OBJ_
BLOB
);
}
int
git_blob_lookup_prefix
(
git_blob
**
out
,
git_repository
*
repo
,
const
git_oid
*
id
,
size_t
len
)
{
return
git_object_lookup_prefix
((
git_object
**
)
out
,
repo
,
id
,
len
,
GIT_OBJ_
COMMIT
);
return
git_object_lookup_prefix
((
git_object
**
)
out
,
repo
,
id
,
len
,
GIT_OBJ_
BLOB
);
}
void
git_blob_free
(
git_blob
*
obj
)
...
...
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