C# Class GitSharp.Core.DirectoryCache.DirCacheEditor.PathEdit

Any index record update. Applications should subclass and provide their own implementation for the Apply method. The editor will invoke apply once for each record in the index which matches the path name. If there are multiple records (for example in stages 1, 2 and 3), the edit instance will be called multiple times, once for each stage.
Show file Open project: stschake/GitSharp

Public Methods

Method Description
Apply ( DirCacheEntry ent ) : void

Apply the update to a single cache entry matching the path. After apply is invoked the entry is added to the output table, and will be included in the new index.

Protected Methods

Method Description
PathEdit ( DirCacheEntry ent ) : System

Create a new update command for an existing entry instance.

PathEdit ( string entryPath ) : System

Create a new update command by path name.

Method Details

Apply() public abstract method

Apply the update to a single cache entry matching the path. After apply is invoked the entry is added to the output table, and will be included in the new index.
public abstract Apply ( DirCacheEntry ent ) : void
ent DirCacheEntry /// The entry being processed. All fields are zeroed out if /// the path is a new path in the index. ///
return void

PathEdit() protected method

Create a new update command for an existing entry instance.
protected PathEdit ( DirCacheEntry ent ) : System
ent DirCacheEntry /// Entry instance to match path of. Only the path of this /// entry is actually considered during command evaluation. ///
return System

PathEdit() protected method

Create a new update command by path name.
protected PathEdit ( string entryPath ) : System
entryPath string path of the file within the repository.
return System