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
37acffac
Commit
37acffac
authored
Oct 08, 2018
by
Etienne Samson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote: remove static create_internal function
parent
10cba764
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
src/remote.c
+5
-10
No files found.
src/remote.c
View file @
37acffac
...
...
@@ -224,7 +224,7 @@ int git_remote_create_init_options(git_remote_create_options *opts, unsigned int
return
0
;
}
static
int
create_internal
(
git_remote
**
out
,
const
char
*
url
,
const
git_remote_create_options
*
opts
)
int
git_remote_create_with_opts
(
git_remote
**
out
,
const
char
*
url
,
const
git_remote_create_options
*
opts
)
{
git_remote
*
remote
=
NULL
;
git_config
*
config_ro
=
NULL
,
*
config_rw
;
...
...
@@ -350,18 +350,13 @@ int git_remote_create(git_remote **out, git_repository *repo, const char *name,
opts
.
repository
=
repo
;
opts
.
name
=
name
;
error
=
create_internal
(
out
,
url
,
&
opts
);
error
=
git_remote_create_with_opts
(
out
,
url
,
&
opts
);
git_buf_dispose
(
&
buf
);
return
error
;
}
int
git_remote_create_with_opts
(
git_remote
**
out
,
const
char
*
url
,
const
git_remote_create_options
*
opts
)
{
return
create_internal
(
out
,
url
,
opts
);
}
int
git_remote_create_with_fetchspec
(
git_remote
**
out
,
git_repository
*
repo
,
const
char
*
name
,
const
char
*
url
,
const
char
*
fetch
)
{
int
error
;
...
...
@@ -375,7 +370,7 @@ int git_remote_create_with_fetchspec(git_remote **out, git_repository *repo, con
opts
.
fetchspec
=
fetch
;
opts
.
flags
=
GIT_REMOTE_CREATE_SKIP_DEFAULT_FETCHSPEC
;
return
create_internal
(
out
,
url
,
&
opts
);
return
git_remote_create_with_opts
(
out
,
url
,
&
opts
);
}
int
git_remote_create_anonymous
(
git_remote
**
out
,
git_repository
*
repo
,
const
char
*
url
)
...
...
@@ -384,12 +379,12 @@ int git_remote_create_anonymous(git_remote **out, git_repository *repo, const ch
opts
.
repository
=
repo
;
return
create_internal
(
out
,
url
,
&
opts
);
return
git_remote_create_with_opts
(
out
,
url
,
&
opts
);
}
int
git_remote_create_detached
(
git_remote
**
out
,
const
char
*
url
)
{
return
create_internal
(
out
,
url
,
NULL
);
return
git_remote_create_with_opts
(
out
,
url
,
NULL
);
}
int
git_remote_dup
(
git_remote
**
dest
,
git_remote
*
source
)
...
...
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