Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2sharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Melcher <info@yogularm.de>2013-12-13 00:39:08 +0400
committerJan Melcher <info@yogularm.de>2013-12-13 00:39:08 +0400
commitdea2d7b378b3b3776e9e00884b2a3ee3ebf71a47 (patch)
tree18d8e8a3de6d8b2bf67d36ded98de89319ee7db9 /LibGit2Sharp/RemoteCallbacks.cs
parentd7879b018678b5cdae9e1c0ca88eba7e7bdd0464 (diff)
Refactored Network.Fetch() with FetchOptions
Changed the signature to Network.Fetch(Remote, FetchOptions). As of #536, optional parameters should be grouped in a xxxOptions type. Network.Fetch() has currently 5 optional parameters, and a sixth one (RefSpecs) will be introduced soon.
Diffstat (limited to 'LibGit2Sharp/RemoteCallbacks.cs')
-rw-r--r--LibGit2Sharp/RemoteCallbacks.cs9
1 files changed, 9 insertions, 0 deletions
diff --git a/LibGit2Sharp/RemoteCallbacks.cs b/LibGit2Sharp/RemoteCallbacks.cs
index b8e85148..65330882 100644
--- a/LibGit2Sharp/RemoteCallbacks.cs
+++ b/LibGit2Sharp/RemoteCallbacks.cs
@@ -24,6 +24,15 @@ namespace LibGit2Sharp
Credentials = credentials;
}
+ internal RemoteCallbacks(FetchOptions fetchOptions)
+ {
+ Ensure.ArgumentNotNull(fetchOptions, "fetchOptions");
+ Progress = fetchOptions.OnProgress;
+ DownloadTransferProgress = fetchOptions.OnTransferProgress;
+ UpdateTips = fetchOptions.OnUpdateTips;
+ Credentials = fetchOptions.Credentials;
+ }
+
#region Delegates
/// <summary>