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
d8702843
Commit
d8702843
authored
May 01, 2017
by
Edward Thomson
Committed by
GitHub
May 01, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4206 from libgit2/cmn/transport-get-proxy
transport: provide a getter for the proxy options
parents
5700ee9c
5c760960
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
include/git2/sys/transport.h
+10
-0
src/transports/smart.c
+6
-0
No files found.
include/git2/sys/transport.h
View file @
d8702843
...
@@ -241,6 +241,16 @@ GIT_EXTERN(int) git_transport_smart_certificate_check(git_transport *transport,
...
@@ -241,6 +241,16 @@ GIT_EXTERN(int) git_transport_smart_certificate_check(git_transport *transport,
*/
*/
GIT_EXTERN
(
int
)
git_transport_smart_credentials
(
git_cred
**
out
,
git_transport
*
transport
,
const
char
*
user
,
int
methods
);
GIT_EXTERN
(
int
)
git_transport_smart_credentials
(
git_cred
**
out
,
git_transport
*
transport
,
const
char
*
user
,
int
methods
);
/**
* Get a copy of the proxy options
*
* The url is copied and must be freed by the caller.
*
* @param out options struct to fill
* @param transport the transport to extract the data from.
*/
GIT_EXTERN
(
int
)
git_transport_smart_proxy_options
(
git_proxy_options
*
out
,
git_transport
*
transport
);
/*
/*
*** End of base transport interface ***
*** End of base transport interface ***
*** Begin interface for subtransports for the smart transport ***
*** Begin interface for subtransports for the smart transport ***
...
...
src/transports/smart.c
View file @
d8702843
...
@@ -472,6 +472,12 @@ int git_transport_smart_credentials(git_cred **out, git_transport *transport, co
...
@@ -472,6 +472,12 @@ int git_transport_smart_credentials(git_cred **out, git_transport *transport, co
return
t
->
cred_acquire_cb
(
out
,
t
->
url
,
user
,
methods
,
t
->
cred_acquire_payload
);
return
t
->
cred_acquire_cb
(
out
,
t
->
url
,
user
,
methods
,
t
->
cred_acquire_payload
);
}
}
int
git_transport_smart_proxy_options
(
git_proxy_options
*
out
,
git_transport
*
transport
)
{
transport_smart
*
t
=
(
transport_smart
*
)
transport
;
return
git_proxy_options_dup
(
out
,
&
t
->
proxy
);
}
int
git_transport_smart
(
git_transport
**
out
,
git_remote
*
owner
,
void
*
param
)
int
git_transport_smart
(
git_transport
**
out
,
git_remote
*
owner
,
void
*
param
)
{
{
transport_smart
*
t
;
transport_smart
*
t
;
...
...
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