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
58fcfc26
Commit
58fcfc26
authored
Dec 17, 2010
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary git_repository_init_results handling.
parent
1a5204a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
+2
-21
src/repository.c
+2
-21
No files found.
src/repository.c
View file @
58fcfc26
...
@@ -730,24 +730,6 @@ int git_object_typeisloose(git_otype type)
...
@@ -730,24 +730,6 @@ int git_object_typeisloose(git_otype type)
return
git_objects_table
[
type
].
loose
;
return
git_objects_table
[
type
].
loose
;
}
}
void
git_repository_init__results_free
(
git_repository_init_results
*
init_results
)
{
if
(
init_results
==
NULL
)
return
;
if
(
init_results
->
path_repository
)
free
(
init_results
->
path_repository
);
}
void
git_repository_init__zero_init_results
(
git_repository_init_results
*
results
)
{
if
(
!
results
)
return
;
memset
(
results
,
0x0
,
sizeof
(
git_repository_init_results
));
}
int
git_repository_init__reinit
(
git_repository_init_results
*
results
)
int
git_repository_init__reinit
(
git_repository_init_results
*
results
)
{
{
/* To be implemented */
/* To be implemented */
...
@@ -815,8 +797,6 @@ int git_repository_init(git_repository** repo_out, const char* path, unsigned is
...
@@ -815,8 +797,6 @@ int git_repository_init(git_repository** repo_out, const char* path, unsigned is
assert
(
repo_out
&&
path
);
assert
(
repo_out
&&
path
);
git_repository_init__zero_init_results
(
&
results
);
results
.
is_bare
=
is_bare
;
results
.
is_bare
=
is_bare
;
error
=
git_repository_init__assign_git_directory
(
&
results
,
path
);
error
=
git_repository_init__assign_git_directory
(
&
results
,
path
);
...
@@ -833,6 +813,6 @@ int git_repository_init(git_repository** repo_out, const char* path, unsigned is
...
@@ -833,6 +813,6 @@ int git_repository_init(git_repository** repo_out, const char* path, unsigned is
// goto cleanup;
// goto cleanup;
cleanup
:
cleanup
:
git_repository_init__results_free
(
&
results
);
free
(
results
.
path_repository
);
return
error
;
return
error
;
}
}
\ No newline at end of file
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