Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FetchOptions: add ability to specify ProxyOptions #623

Merged
merged 3 commits into from
Jul 10, 2020

Conversation

lollipopman
Copy link
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.
Copy link
Contributor

@lhchavez lhchavez left a comment

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.

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
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!

Copy link
Contributor

@lhchavez lhchavez left a comment

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