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
1cc2979a
Commit
1cc2979a
authored
Mar 10, 2023
by
lmcglash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix merge error
parent
570ef74a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
26 deletions
+17
-26
src/libgit2/commit.c
+17
-26
No files found.
src/libgit2/commit.c
View file @
1cc2979a
...
...
@@ -517,6 +517,18 @@ int git_commit__parse(
return
git_commit__parse_ext
(
commit
,
odb_obj
,
&
parse_options
);
}
int
git_commit__parse_raw
(
void
*
commit
,
const
char
*
data
,
size_t
size
,
git_oid_t
oid_type
)
{
git_commit__parse_options
parse_options
=
{
0
};
parse_options
.
oid_type
=
oid_type
;
return
commit_parse
(
commit
,
data
,
size
,
&
parse_options
);
}
static
int
assign_commit_parents_from_graft
(
git_commit
*
commit
,
git_commit_graft
*
graft
)
{
size_t
idx
;
git_oid
*
oid
;
...
...
@@ -533,14 +545,17 @@ static int assign_commit_parents_from_graft(git_commit *commit, git_commit_graft
return
0
;
}
int
git_commit__parse_ext
(
git_commit
*
commit
,
git_odb_object
*
odb_obj
,
unsigned
int
flags
)
int
git_commit__parse_ext
(
git_commit
*
commit
,
git_odb_object
*
odb_obj
,
git_commit__parse_options
*
parse_opts
)
{
git_repository
*
repo
=
git_object_owner
((
git_object
*
)
commit
);
git_commit_graft
*
graft
;
int
error
;
if
((
error
=
commit_parse
(
commit
,
git_odb_object_data
(
odb_obj
),
git_odb_object_size
(
odb_obj
),
flag
s
))
<
0
)
git_odb_object_size
(
odb_obj
),
parse_opt
s
))
<
0
)
return
error
;
if
(
!
git_shallow__enabled
)
...
...
@@ -554,30 +569,6 @@ int git_commit__parse_ext(git_commit *commit, git_odb_object *odb_obj, unsigned
return
assign_commit_parents_from_graft
(
commit
,
graft
);
}
int
git_commit__parse_raw
(
void
*
commit
,
const
char
*
data
,
size_t
size
,
git_oid_t
oid_type
)
{
git_commit__parse_options
parse_options
=
{
0
};
parse_options
.
oid_type
=
oid_type
;
return
commit_parse
(
commit
,
data
,
size
,
&
parse_options
);
}
int
git_commit__parse_ext
(
git_commit
*
commit
,
git_odb_object
*
odb_obj
,
git_commit__parse_options
*
parse_opts
)
{
return
commit_parse
(
commit
,
git_odb_object_data
(
odb_obj
),
git_odb_object_size
(
odb_obj
),
parse_opts
);
}
#define GIT_COMMIT_GETTER(_rvalue, _name, _return, _invalid) \
_rvalue git_commit_##_name(const git_commit *commit) \
{\
...
...
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