From 90155789aedd51bc8f2ccb122f48977bc0fccc66 Mon Sep 17 00:00:00 2001 From: Jameson Miller Date: Tue, 22 Apr 2014 09:25:49 -0400 Subject: Update Checkout and Merge options Checkout methods now use CheckoutOptions Merge now takes several options: - Option to specify what is checked out for file conflicts. - Report CheckoutProgress and CheckoutNotify - Option to specify MergeFileFavor Updates for code review feedback --- LibGit2Sharp/IRepository.cs | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) (limited to 'LibGit2Sharp/IRepository.cs') diff --git a/LibGit2Sharp/IRepository.cs b/LibGit2Sharp/IRepository.cs index 44e40d2a..28ce2989 100644 --- a/LibGit2Sharp/IRepository.cs +++ b/LibGit2Sharp/IRepository.cs @@ -83,6 +83,7 @@ namespace LibGit2Sharp /// to manage checkout notifications. /// Identity for use when updating the reflog. /// The that was checked out. + [Obsolete("This overload will be removed in the next release. Please use Repository.Checkout(Branch, CheckoutOptions, Signature) instead.")] Branch Checkout(Branch branch, CheckoutModifiers checkoutModifiers, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions, Signature signature = null); /// @@ -98,6 +99,7 @@ namespace LibGit2Sharp /// to manage checkout notifications. /// Identity for use when updating the reflog. /// The that was checked out. + [Obsolete("This overload will be removed in the next release. Please use Repository.Checkout(string, CheckoutOptions, Signature) instead.")] Branch Checkout(string committishOrBranchSpec, CheckoutModifiers checkoutModifiers, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions, Signature signature = null); /// @@ -112,8 +114,47 @@ namespace LibGit2Sharp /// to manage checkout notifications. /// Identity for use when updating the reflog. /// The that was checked out. + [Obsolete("This overload will be removed in the next release. Please use Repository.Checkout(Commit, CheckoutOptions, Signature) instead.")] Branch Checkout(Commit commit, CheckoutModifiers checkoutModifiers, CheckoutProgressHandler onCheckoutProgress, CheckoutNotificationOptions checkoutNotificationOptions, Signature signature = null); + /// + /// Checkout the commit pointed at by the tip of the specified . + /// + /// If this commit is the current tip of the branch as it exists in the repository, the HEAD + /// will point to this branch. Otherwise, the HEAD will be detached, pointing at the commit sha. + /// + /// + /// The to check out. + /// controlling checkout behavior. + /// Identity for use when updating the reflog. + /// The that was checked out. + Branch Checkout(Branch branch, CheckoutOptions options, Signature signature = null); + + /// + /// Checkout the specified branch, reference or SHA. + /// + /// If the committishOrBranchSpec parameter resolves to a branch name, then the checked out HEAD will + /// will point to the branch. Otherwise, the HEAD will be detached, pointing at the commit sha. + /// + /// + /// A revparse spec for the commit or branch to checkout. + /// controlling checkout behavior. + /// Identity for use when updating the reflog. + /// The that was checked out. + Branch Checkout(string committishOrBranchSpec, CheckoutOptions options, Signature signature = null); + + /// + /// Checkout the specified . + /// + /// Will detach the HEAD and make it point to this commit sha. + /// + /// + /// The to check out. + /// controlling checkout behavior. + /// Identity for use when updating the reflog. + /// The that was checked out. + Branch Checkout(Commit commit, CheckoutOptions options, Signature signature = null); + /// /// Updates specifed paths in the index and working directory with the versions from the specified branch, reference, or SHA. /// -- cgit v1.2.3