FetchOptions: add ability to specify ProxyOptions #623
Loading…
Reference in New Issue
No description provided.
Delete Branch "clone-proxy-opts"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
nice, just two small requests.
it may be better to avoid embedding
ProxyOptions
, and also use a value instead of a pointer type since the zero value forProxyOptions
is well-defined and matches the semantics of not specifying it (also makes it consistent with all the other fields ofFetchOptions
):both
git_fetch_init_options()
andpopulateProxyOptions()
take care of this, so it can be safely omitted.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!
no additional changes needed. thanks!