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
0b90366c
Commit
0b90366c
authored
Apr 23, 2013
by
Xavier L
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes indentation
parent
f0e37a8b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/pack-objects.c
+8
-8
No files found.
src/pack-objects.c
View file @
0b90366c
...
@@ -1286,17 +1286,17 @@ static int cb_tree_walk(const char *root, const git_tree_entry *entry, void *pay
...
@@ -1286,17 +1286,17 @@ static int cb_tree_walk(const char *root, const git_tree_entry *entry, void *pay
int
git_packbuilder_insert_commit
(
git_packbuilder
*
pb
,
const
git_oid
*
oid
)
int
git_packbuilder_insert_commit
(
git_packbuilder
*
pb
,
const
git_oid
*
oid
)
{
{
git_commit
*
commit
;
git_commit
*
commit
;
if
(
git_commit_lookup
(
&
commit
,
pb
->
repo
,
oid
)
<
0
||
if
(
git_commit_lookup
(
&
commit
,
pb
->
repo
,
oid
)
<
0
||
git_packbuilder_insert
(
pb
,
oid
,
NULL
)
<
0
)
git_packbuilder_insert
(
pb
,
oid
,
NULL
)
<
0
)
return
-
1
;
return
-
1
;
if
(
git_packbuilder_insert_tree
(
pb
,
git_commit_tree_id
(
commit
))
<
0
)
if
(
git_packbuilder_insert_tree
(
pb
,
git_commit_tree_id
(
commit
))
<
0
)
return
-
1
;
return
-
1
;
git_commit_free
(
commit
);
git_commit_free
(
commit
);
return
0
;
return
0
;
}
}
int
git_packbuilder_insert_tree
(
git_packbuilder
*
pb
,
const
git_oid
*
oid
)
int
git_packbuilder_insert_tree
(
git_packbuilder
*
pb
,
const
git_oid
*
oid
)
...
...
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