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
467cbec7
Commit
467cbec7
authored
May 05, 2013
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit: make create_from_oids() accept plain oid
parent
ce72e399
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
include/git2/sys/commit.h
+3
-2
src/commit.c
+0
-1
No files found.
include/git2/sys/commit.h
View file @
467cbec7
...
...
@@ -25,8 +25,9 @@ GIT_BEGIN_DECL
*
* See documentation for `git_commit_create()` for information about the
* parameters, as the meaning is identical excepting that `tree` and
* `parents` now take `git_oid`. This is a dangerous API in that the
* `parents` list of `git_oid`s in not checked for validity.
* `parents` now take `git_oid`. This is a dangerous API in that nor
* the `tree`, neither the `parents` list of `git_oid`s are checked for
* validity.
*/
GIT_EXTERN
(
int
)
git_commit_create_from_oids
(
git_oid
*
oid
,
...
...
src/commit.c
View file @
467cbec7
...
...
@@ -96,7 +96,6 @@ int git_commit_create_from_oids(
git_odb
*
odb
;
assert
(
oid
&&
repo
&&
tree
&&
parent_count
>=
0
);
assert
(
git_object_owner
((
const
git_object
*
)
tree
)
==
repo
);
git_oid__writebuf
(
&
commit
,
"tree "
,
tree
);
...
...
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