Skip to content

FetchOptions: add ability to specify ProxyOptions - #623

Merged
lhchavez merged 3 commits into
libgit2:masterfrom
lollipopman:clone-proxy-opts
Jul 10, 2020
Merged

FetchOptions: add ability to specify ProxyOptions#623
lhchavez merged 3 commits into
libgit2:masterfrom
lollipopman:clone-proxy-opts

Conversation

@lollipopman

Copy link
Copy Markdown
Contributor

Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

@lhchavez lhchavez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, just two small requests.

Comment thread remote.go Outdated
Comment thread remote.go Outdated
Rather than embeding the ProxyOptions struct add a member to the struct.
Also use a value rather than a pointer, so that the zero value of
FetchOptions is well defined.
This is already preformed by git_fetch_init_options()
@lollipopman

Copy link
Copy Markdown
Contributor Author

Thanks for the detailed feedback @lhchavez, I believe I have addressed both of your good suggestions, let me know if you what to see any additional changes, thanks!

@lhchavez lhchavez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let me know if you what to see any additional changes, thanks!

no additional changes needed. thanks!

@lhchavez
lhchavez merged commit b1cad11 into libgit2:master Jul 10, 2020
lhchavez pushed a commit that referenced this pull request Aug 15, 2020
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

(cherry picked from commit b1cad11)
lhchavez pushed a commit that referenced this pull request Aug 15, 2020
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

(cherry picked from commit b1cad11)
lhchavez pushed a commit that referenced this pull request Aug 15, 2020
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

(cherry picked from commit b1cad11)
lhchavez pushed a commit that referenced this pull request Aug 15, 2020
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

(cherry picked from commit b1cad11)
lhchavez pushed a commit that referenced this pull request Aug 16, 2020
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

(cherry picked from commit b1cad11)
lhchavez pushed a commit that referenced this pull request Aug 16, 2020
Prior to this change you could not specifiy proxy options on the
FetchOptions struct, which made it impossible to specify a proxy for an
initial clone. This change adds the ProxyOptions to the FetchOptions
struct so you can go through a proxy when cloning.

(cherry picked from commit b1cad11)
lhchavez pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.
github-actions Bot pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)
github-actions Bot pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)
github-actions Bot pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)
github-actions Bot pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)
github-actions Bot pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)
lhchavez pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)

Co-authored-by: Aurélien <6292584+au2001@users.noreply.github.com>
lhchavez pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)

Co-authored-by: Aurélien <6292584+au2001@users.noreply.github.com>
lhchavez pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)

Co-authored-by: Aurélien <6292584+au2001@users.noreply.github.com>
lhchavez pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)

Co-authored-by: Aurélien <6292584+au2001@users.noreply.github.com>
lhchavez pushed a commit that referenced this pull request Jan 18, 2022
Analog to #623 but for push operations rather than fetch.

(cherry picked from commit 5eca48c)

Co-authored-by: Aurélien <6292584+au2001@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants