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:
authorJameson Miller <jamill@microsoft.com>2013-07-12 01:27:14 +0400
committernulltoken <emeric.fermas@gmail.com>2013-07-20 14:09:26 +0400
commit7e5bbbf17cf27a5c5d0e60670a6c33942ff69cce (patch)
tree48d0b147cb8b27398f86a274dcebeddfb75c1f79 /LibGit2Sharp/IRepository.cs
parent01dfa285be47c7d6b864e9cc2586ea57e724515a (diff)
Teach Repository to Checkout paths
Diffstat (limited to 'LibGit2Sharp/IRepository.cs')
-rw-r--r--LibGit2Sharp/IRepository.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/LibGit2Sharp/IRepository.cs b/LibGit2Sharp/IRepository.cs
index cd7a46bc..b011a4da 100644
--- a/LibGit2Sharp/IRepository.cs
+++ b/LibGit2Sharp/IRepository.cs
@@ -153,6 +153,19 @@ namespace LibGit2Sharp
Branch Checkout(Commit commit, CheckoutModifiers checkoutModifiers, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions);
/// <summary>
+ /// Checkout files from the specified branch, reference or SHA.
+ /// <para>
+ /// This method does not switch branches or update the current repository HEAD.
+ /// </para>
+ /// </summary>
+ /// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout paths from.</param>
+ /// <param name="paths">The paths to checkout.</param>
+ /// <param name="checkoutOptions">Options controlling checkout behavior.</param>
+ /// <param name="onCheckoutProgress">Callback method to report checkout progress updates through.</param>
+ /// <param name="checkoutNotificationOptions"><see cref="CheckoutNotificationOptions"/> to manage checkout notifications.</param>
+ void CheckoutPaths(string committishOrBranchSpec, IList<string> paths, CheckoutModifiers checkoutOptions, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions);
+
+ /// <summary>
/// Try to lookup an object by its <see cref="ObjectId"/>. If no matching object is found, null will be returned.
/// </summary>
/// <param name="id">The id to lookup.</param>