@@ -69,44 +69,6 @@ public interface IRepository : IDisposable
69
69
/// </summary>
70
70
SubmoduleCollection Submodules { get ; }
71
71
72
- /// <summary>
73
- /// Checkout the commit pointed at by the tip of the specified <see cref="Branch"/>.
74
- /// <para>
75
- /// If this commit is the current tip of the branch as it exists in the repository, the HEAD
76
- /// will point to this branch. Otherwise, the HEAD will be detached, pointing at the commit sha.
77
- /// </para>
78
- /// </summary>
79
- /// <param name="branch">The <see cref="Branch"/> to check out.</param>
80
- /// <param name="options"><see cref="CheckoutOptions"/> controlling checkout behavior.</param>
81
- /// <returns>The <see cref="Branch"/> that was checked out.</returns>
82
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Checkout()" ) ]
83
- Branch Checkout ( Branch branch , CheckoutOptions options ) ;
84
-
85
- /// <summary>
86
- /// Checkout the specified branch, reference or SHA.
87
- /// <para>
88
- /// If the committishOrBranchSpec parameter resolves to a branch name, then the checked out HEAD will
89
- /// will point to the branch. Otherwise, the HEAD will be detached, pointing at the commit sha.
90
- /// </para>
91
- /// </summary>
92
- /// <param name="committishOrBranchSpec">A revparse spec for the commit or branch to checkout.</param>
93
- /// <param name="options"><see cref="CheckoutOptions"/> controlling checkout behavior.</param>
94
- /// <returns>The <see cref="Branch"/> that was checked out.</returns>
95
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Checkout()" ) ]
96
- Branch Checkout ( string committishOrBranchSpec , CheckoutOptions options ) ;
97
-
98
- /// <summary>
99
- /// Checkout the specified <see cref="LibGit2Sharp.Commit"/>.
100
- /// <para>
101
- /// Will detach the HEAD and make it point to this commit sha.
102
- /// </para>
103
- /// </summary>
104
- /// <param name="commit">The <see cref="LibGit2Sharp.Commit"/> to check out.</param>
105
- /// <param name="options"><see cref="CheckoutOptions"/> controlling checkout behavior.</param>
106
- /// <returns>The <see cref="Branch"/> that was checked out.</returns>
107
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Checkout()" ) ]
108
- Branch Checkout ( Commit commit , CheckoutOptions options ) ;
109
-
110
72
/// <summary>
111
73
/// Checkout the specified tree.
112
74
/// </summary>
@@ -275,112 +237,6 @@ public interface IRepository : IDisposable
275
237
/// <returns>The blame for the file.</returns>
276
238
BlameHunkCollection Blame ( string path , BlameOptions options ) ;
277
239
278
- /// <summary>
279
- /// Promotes to the staging area the latest modifications of a file in the working directory (addition, updation or removal).
280
- ///
281
- /// If this path is ignored by configuration then it will not be staged unless <see cref="StageOptions.IncludeIgnored"/> is unset.
282
- /// </summary>
283
- /// <param name="path">The path of the file within the working directory.</param>
284
- /// <param name="stageOptions">Determines how paths will be staged.</param>
285
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Stage()" ) ]
286
- void Stage ( string path , StageOptions stageOptions ) ;
287
-
288
- /// <summary>
289
- /// Promotes to the staging area the latest modifications of a collection of files in the working directory (addition, updation or removal).
290
- ///
291
- /// Any paths (even those listed explicitly) that are ignored by configuration will not be staged unless <see cref="StageOptions.IncludeIgnored"/> is unset.
292
- /// </summary>
293
- /// <param name="paths">The collection of paths of the files within the working directory.</param>
294
- /// <param name="stageOptions">Determines how paths will be staged.</param>
295
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Stage()" ) ]
296
- void Stage ( IEnumerable < string > paths , StageOptions stageOptions ) ;
297
-
298
- /// <summary>
299
- /// Removes from the staging area all the modifications of a file since the latest commit (addition, updation or removal).
300
- /// </summary>
301
- /// <param name="path">The path of the file within the working directory.</param>
302
- /// <param name="explicitPathsOptions">
303
- /// The passed <paramref name="path"/> will be treated as explicit paths.
304
- /// Use these options to determine how unmatched explicit paths should be handled.
305
- /// </param>
306
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Unstage()" ) ]
307
- void Unstage ( string path , ExplicitPathsOptions explicitPathsOptions ) ;
308
-
309
- /// <summary>
310
- /// Removes from the staging area all the modifications of a collection of file since the latest commit (addition, updation or removal).
311
- /// </summary>
312
- /// <param name="paths">The collection of paths of the files within the working directory.</param>
313
- /// <param name="explicitPathsOptions">
314
- /// The passed <paramref name="paths"/> will be treated as explicit paths.
315
- /// Use these options to determine how unmatched explicit paths should be handled.
316
- /// </param>
317
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Unstage()" ) ]
318
- void Unstage ( IEnumerable < string > paths , ExplicitPathsOptions explicitPathsOptions ) ;
319
-
320
- /// <summary>
321
- /// Moves and/or renames a file in the working directory and promotes the change to the staging area.
322
- /// </summary>
323
- /// <param name="sourcePath">The path of the file within the working directory which has to be moved/renamed.</param>
324
- /// <param name="destinationPath">The target path of the file within the working directory.</param>
325
- [ Obsolete ( "This method is deprecatd. Please use LibGit2Sharp.Commands.Move()" ) ]
326
- void Move ( string sourcePath , string destinationPath ) ;
327
-
328
- /// <summary>
329
- /// Moves and/or renames a collection of files in the working directory and promotes the changes to the staging area.
330
- /// </summary>
331
- /// <param name="sourcePaths">The paths of the files within the working directory which have to be moved/renamed.</param>
332
- /// <param name="destinationPaths">The target paths of the files within the working directory.</param>
333
- [ Obsolete ( "This method is deprecatd. Please use LibGit2Sharp.Commands.Move()" ) ]
334
- void Move ( IEnumerable < string > sourcePaths , IEnumerable < string > destinationPaths ) ;
335
-
336
- /// <summary>
337
- /// Removes a file from the staging area, and optionally removes it from the working directory as well.
338
- /// <para>
339
- /// If the file has already been deleted from the working directory, this method will only deal
340
- /// with promoting the removal to the staging area.
341
- /// </para>
342
- /// <para>
343
- /// The default behavior is to remove the file from the working directory as well.
344
- /// </para>
345
- /// <para>
346
- /// When not passing a <paramref name="explicitPathsOptions"/>, the passed path will be treated as
347
- /// a pathspec. You can for example use it to pass the relative path to a folder inside the working directory,
348
- /// so that all files beneath this folders, and the folder itself, will be removed.
349
- /// </para>
350
- /// </summary>
351
- /// <param name="path">The path of the file within the working directory.</param>
352
- /// <param name="removeFromWorkingDirectory">True to remove the file from the working directory, False otherwise.</param>
353
- /// <param name="explicitPathsOptions">
354
- /// The passed <paramref name="path"/> will be treated as an explicit path.
355
- /// Use these options to determine how unmatched explicit paths should be handled.
356
- /// </param>
357
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Remove()" ) ]
358
- void Remove ( string path , bool removeFromWorkingDirectory , ExplicitPathsOptions explicitPathsOptions ) ;
359
-
360
- /// <summary>
361
- /// Removes a collection of fileS from the staging, and optionally removes them from the working directory as well.
362
- /// <para>
363
- /// If a file has already been deleted from the working directory, this method will only deal
364
- /// with promoting the removal to the staging area.
365
- /// </para>
366
- /// <para>
367
- /// The default behavior is to remove the files from the working directory as well.
368
- /// </para>
369
- /// <para>
370
- /// When not passing a <paramref name="explicitPathsOptions"/>, the passed paths will be treated as
371
- /// a pathspec. You can for example use it to pass the relative paths to folders inside the working directory,
372
- /// so that all files beneath these folders, and the folders themselves, will be removed.
373
- /// </para>
374
- /// </summary>
375
- /// <param name="paths">The collection of paths of the files within the working directory.</param>
376
- /// <param name="removeFromWorkingDirectory">True to remove the files from the working directory, False otherwise.</param>
377
- /// <param name="explicitPathsOptions">
378
- /// The passed <paramref name="paths"/> will be treated as explicit paths.
379
- /// Use these options to determine how unmatched explicit paths should be handled.
380
- /// </param>
381
- [ Obsolete ( "This method is deprecated. Please use LibGit2Sharp.Commands.Unstage()" ) ]
382
- void Remove ( IEnumerable < string > paths , bool removeFromWorkingDirectory , ExplicitPathsOptions explicitPathsOptions ) ;
383
-
384
240
/// <summary>
385
241
/// Retrieves the state of a file in the working directory, comparing it against the staging area and the latest commit.
386
242
/// </summary>
0 commit comments