@@ -127,149 +127,6 @@ IEnumerator IEnumerable.GetEnumerator()
127127
128128 #endregion
129129
130- /// <summary>
131- /// Promotes to the staging area the latest modifications of a file in the working directory (addition, updation or removal).
132- ///
133- /// If this path is ignored by configuration then it will not be staged unless <see cref="StageOptions.IncludeIgnored"/> is unset.
134- /// </summary>
135- /// <param name="path">The path of the file within the working directory.</param>
136- /// <param name="stageOptions">If set, determines how paths will be staged.</param>
137- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Stage() instead." ) ]
138- public virtual void Stage ( string path , StageOptions stageOptions = null )
139- {
140- repo . Stage ( path , stageOptions ) ;
141- }
142-
143- /// <summary>
144- /// Promotes to the staging area the latest modifications of a collection of files in the working directory (addition, updation or removal).
145- ///
146- /// Any paths (even those listed explicitly) that are ignored by configuration will not be staged unless <see cref="StageOptions.IncludeIgnored"/> is unset.
147- /// </summary>
148- /// <param name="paths">The collection of paths of the files within the working directory.</param>
149- /// <param name="stageOptions">If set, determines how paths will be staged.</param>
150- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Stage() instead." ) ]
151- public virtual void Stage ( IEnumerable < string > paths , StageOptions stageOptions = null )
152- {
153- repo . Stage ( paths , stageOptions ) ;
154- }
155-
156- /// <summary>
157- /// Removes from the staging area all the modifications of a file since the latest commit (addition, updation or removal).
158- /// </summary>
159- /// <param name="path">The path of the file within the working directory.</param>
160- /// <param name="explicitPathsOptions">
161- /// If set, the passed <paramref name="path"/> will be treated as explicit paths.
162- /// Use these options to determine how unmatched explicit paths should be handled.
163- /// </param>
164- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Unstage() instead." ) ]
165- public virtual void Unstage ( string path , ExplicitPathsOptions explicitPathsOptions = null )
166- {
167- repo . Unstage ( path , explicitPathsOptions ) ;
168- }
169-
170- /// <summary>
171- /// Removes from the staging area all the modifications of a collection of file since the latest commit (addition, updation or removal).
172- /// </summary>
173- /// <param name="paths">The collection of paths of the files within the working directory.</param>
174- /// <param name="explicitPathsOptions">
175- /// If set, the passed <paramref name="paths"/> will be treated as explicit paths.
176- /// Use these options to determine how unmatched explicit paths should be handled.
177- /// </param>
178- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Unstage() instead." ) ]
179- public virtual void Unstage ( IEnumerable < string > paths , ExplicitPathsOptions explicitPathsOptions = null )
180- {
181- repo . Unstage ( paths , explicitPathsOptions ) ;
182- }
183-
184- /// <summary>
185- /// Moves and/or renames a file in the working directory and promotes the change to the staging area.
186- /// </summary>
187- /// <param name="sourcePath">The path of the file within the working directory which has to be moved/renamed.</param>
188- /// <param name="destinationPath">The target path of the file within the working directory.</param>
189- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Move() instead." ) ]
190- public virtual void Move ( string sourcePath , string destinationPath )
191- {
192- repo . Move ( new [ ] { sourcePath } , new [ ] { destinationPath } ) ;
193- }
194-
195- /// <summary>
196- /// Moves and/or renames a collection of files in the working directory and promotes the changes to the staging area.
197- /// </summary>
198- /// <param name="sourcePaths">The paths of the files within the working directory which have to be moved/renamed.</param>
199- /// <param name="destinationPaths">The target paths of the files within the working directory.</param>
200- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Move() instead." ) ]
201- public virtual void Move ( IEnumerable < string > sourcePaths , IEnumerable < string > destinationPaths )
202- {
203- repo . Move ( sourcePaths , destinationPaths ) ;
204- }
205-
206- /// <summary>
207- /// Removes a file from the staging area, and optionally removes it from the working directory as well.
208- /// <para>
209- /// If the file has already been deleted from the working directory, this method will only deal
210- /// with promoting the removal to the staging area.
211- /// </para>
212- /// <para>
213- /// The default behavior is to remove the file from the working directory as well.
214- /// </para>
215- /// <para>
216- /// When not passing a <paramref name="explicitPathsOptions"/>, the passed path will be treated as
217- /// a pathspec. You can for example use it to pass the relative path to a folder inside the working directory,
218- /// so that all files beneath this folders, and the folder itself, will be removed.
219- /// </para>
220- /// </summary>
221- /// <param name="path">The path of the file within the working directory.</param>
222- /// <param name="removeFromWorkingDirectory">True to remove the file from the working directory, False otherwise.</param>
223- /// <param name="explicitPathsOptions">
224- /// If set, the passed <paramref name="path"/> will be treated as an explicit path.
225- /// Use these options to determine how unmatched explicit paths should be handled.
226- /// </param>
227- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Remove() instead." ) ]
228- public virtual void Remove ( string path , bool removeFromWorkingDirectory = true , ExplicitPathsOptions explicitPathsOptions = null )
229- {
230- repo . Remove ( new [ ] { path } , removeFromWorkingDirectory , explicitPathsOptions ) ;
231- }
232-
233- /// <summary>
234- /// Removes a collection of fileS from the staging, and optionally removes them from the working directory as well.
235- /// <para>
236- /// If a file has already been deleted from the working directory, this method will only deal
237- /// with promoting the removal to the staging area.
238- /// </para>
239- /// <para>
240- /// The default behavior is to remove the files from the working directory as well.
241- /// </para>
242- /// <para>
243- /// When not passing a <paramref name="explicitPathsOptions"/>, the passed paths will be treated as
244- /// a pathspec. You can for example use it to pass the relative paths to folders inside the working directory,
245- /// so that all files beneath these folders, and the folders themselves, will be removed.
246- /// </para>
247- /// </summary>
248- /// <param name="paths">The collection of paths of the files within the working directory.</param>
249- /// <param name="removeFromWorkingDirectory">True to remove the files from the working directory, False otherwise.</param>
250- /// <param name="explicitPathsOptions">
251- /// If set, the passed <paramref name="paths"/> will be treated as explicit paths.
252- /// Use these options to determine how unmatched explicit paths should be handled.
253- /// </param>
254- [ Obsolete ( "This method will be removed in the next release. Use IRepository.Remove() instead." ) ]
255- public virtual void Remove ( IEnumerable < string > paths , bool removeFromWorkingDirectory = true , ExplicitPathsOptions explicitPathsOptions = null )
256- {
257- repo . Remove ( paths , removeFromWorkingDirectory , explicitPathsOptions ) ;
258- }
259-
260- /// <summary>
261- /// Replaces entries in the staging area with entries from the specified tree.
262- /// <para>
263- /// This overwrites all existing state in the staging area.
264- /// </para>
265- /// </summary>
266- /// <param name="source">The <see cref="Tree"/> to read the entries from.</param>
267- [ Obsolete ( "This method will be removed in the next release. Use Replace instead." ) ]
268- public virtual void Reset ( Tree source )
269- {
270- Replace ( source ) ;
271- }
272-
273130 /// <summary>
274131 /// Replaces entries in the staging area with entries from the specified tree.
275132 /// <para>
@@ -312,28 +169,6 @@ private void UpdatePhysicalIndex()
312169 Proxy . git_index_write ( handle ) ;
313170 }
314171
315- /// <summary>
316- /// Retrieves the state of a file in the working directory, comparing it against the staging area and the latest commmit.
317- /// </summary>
318- /// <param name="filePath">The relative path within the working directory to the file.</param>
319- /// <returns>A <see cref="FileStatus"/> representing the state of the <paramref name="filePath"/> parameter.</returns>
320- [ Obsolete ( "This method will be removed in the next release. Use IRepository.RetrieveStatus() instead." ) ]
321- public virtual FileStatus RetrieveStatus ( string filePath )
322- {
323- return repo . RetrieveStatus ( filePath ) ;
324- }
325-
326- /// <summary>
327- /// Retrieves the state of all files in the working directory, comparing them against the staging area and the latest commmit.
328- /// </summary>
329- /// <param name="options">If set, the options that control the status investigation.</param>
330- /// <returns>A <see cref="RepositoryStatus"/> holding the state of all the files.</returns>
331- [ Obsolete ( "This method will be removed in the next release. Use IRepository.RetrieveStatus() instead." ) ]
332- public virtual RepositoryStatus RetrieveStatus ( StatusOptions options = null )
333- {
334- return repo . RetrieveStatus ( options ) ;
335- }
336-
337172 internal void Replace ( TreeChanges changes )
338173 {
339174 foreach ( TreeEntryChanges treeEntryChanges in changes )
0 commit comments