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
0d77a56f
Commit
0d77a56f
authored
May 26, 2016
by
Edward Thomson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
checkout: drop unused repo
parent
c2f18b9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/commit.c
+3
-4
No files found.
src/commit.c
View file @
0d77a56f
...
@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
...
@@ -40,7 +40,6 @@ void git_commit__free(void *_commit)
static
int
git_commit__create_buffer_internal
(
static
int
git_commit__create_buffer_internal
(
git_buf
*
out
,
git_buf
*
out
,
git_repository
*
repo
,
const
git_signature
*
author
,
const
git_signature
*
author
,
const
git_signature
*
committer
,
const
git_signature
*
committer
,
const
char
*
message_encoding
,
const
char
*
message_encoding
,
...
@@ -51,7 +50,7 @@ static int git_commit__create_buffer_internal(
...
@@ -51,7 +50,7 @@ static int git_commit__create_buffer_internal(
size_t
i
=
0
;
size_t
i
=
0
;
const
git_oid
*
parent
;
const
git_oid
*
parent
;
assert
(
out
&&
repo
&&
tree
);
assert
(
out
&&
tree
);
git_oid__writebuf
(
out
,
"tree "
,
tree
);
git_oid__writebuf
(
out
,
"tree "
,
tree
);
...
@@ -150,7 +149,7 @@ static int git_commit__create_internal(
...
@@ -150,7 +149,7 @@ static int git_commit__create_internal(
if
((
error
=
validate_tree_and_parents
(
&
parents
,
repo
,
tree
,
parent_cb
,
parent_payload
,
current_id
,
validate
))
<
0
)
if
((
error
=
validate_tree_and_parents
(
&
parents
,
repo
,
tree
,
parent_cb
,
parent_payload
,
current_id
,
validate
))
<
0
)
goto
cleanup
;
goto
cleanup
;
error
=
git_commit__create_buffer_internal
(
&
buf
,
repo
,
author
,
committer
,
error
=
git_commit__create_buffer_internal
(
&
buf
,
author
,
committer
,
message_encoding
,
message
,
tree
,
message_encoding
,
message
,
tree
,
&
parents
);
&
parents
);
...
@@ -813,7 +812,7 @@ int git_commit_create_buffer(git_buf *out,
...
@@ -813,7 +812,7 @@ int git_commit_create_buffer(git_buf *out,
return
error
;
return
error
;
error
=
git_commit__create_buffer_internal
(
error
=
git_commit__create_buffer_internal
(
out
,
repo
,
author
,
committer
,
out
,
author
,
committer
,
message_encoding
,
message
,
tree_id
,
message_encoding
,
message
,
tree_id
,
&
parents_arr
);
&
parents_arr
);
...
...
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