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
998f9c15
Unverified
Commit
998f9c15
authored
Aug 07, 2019
by
Tyler Ang-Wanek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup: strange indentation
parent
8f68ad9d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/commit.c
+5
-5
No files found.
src/commit.c
View file @
998f9c15
...
@@ -80,8 +80,8 @@ on_error:
...
@@ -80,8 +80,8 @@ on_error:
}
}
static
int
validate_tree_and_parents
(
git_array_oid_t
*
parents
,
git_repository
*
repo
,
const
git_oid
*
tree
,
static
int
validate_tree_and_parents
(
git_array_oid_t
*
parents
,
git_repository
*
repo
,
const
git_oid
*
tree
,
git_commit_parent_callback
parent_cb
,
void
*
parent_payload
,
git_commit_parent_callback
parent_cb
,
void
*
parent_payload
,
const
git_oid
*
current_id
,
bool
validate
)
const
git_oid
*
current_id
,
bool
validate
)
{
{
size_t
i
;
size_t
i
;
int
error
;
int
error
;
...
@@ -152,8 +152,8 @@ static int git_commit__create_internal(
...
@@ -152,8 +152,8 @@ static int git_commit__create_internal(
goto
cleanup
;
goto
cleanup
;
error
=
git_commit__create_buffer_internal
(
&
buf
,
author
,
committer
,
error
=
git_commit__create_buffer_internal
(
&
buf
,
author
,
committer
,
message_encoding
,
message
,
tree
,
message_encoding
,
message
,
tree
,
&
parents
);
&
parents
);
if
(
error
<
0
)
if
(
error
<
0
)
goto
cleanup
;
goto
cleanup
;
...
@@ -582,7 +582,7 @@ const char *git_commit_body(git_commit *commit)
...
@@ -582,7 +582,7 @@ const char *git_commit_body(git_commit *commit)
break
;
break
;
if
(
*
msg
)
if
(
*
msg
)
commit
->
body
=
git__strndup
(
msg
,
end
-
msg
+
1
);
commit
->
body
=
git__strndup
(
msg
,
end
-
msg
+
1
);
}
}
return
commit
->
body
;
return
commit
->
body
;
...
...
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