C# 클래스 GitSharp.Core.DirectoryCache.DirCacheEditor

Updates a DirCache by supplying discrete edit commands. An editor updates a DirCache by taking a list of PathEdit commands and executing them against the entries of the destination cache to produce a new cache. This edit style allows applications to insert a few commands and then have the editor compute the proper entry indexes necessary to perform an efficient in-order update of the index records. This can be easier to use than DirCacheBuilder.
상속: GitSharp.Core.DirectoryCache.BaseDirCacheEditor
파일 보기 프로젝트 열기: stschake/GitSharp

공개 메소드들

메소드 설명
DirCacheEditor ( DirCache dirCache, int entryCount ) : System

Construct a new editor.

add ( PathEdit edit ) : void

Append one edit command to the list of commands to be applied. Edit commands may be added in any order chosen by the application. They are automatically rearranged by the builder to provide the most efficient update possible.

commit ( ) : bool
finish ( ) : void

비공개 메소드들

메소드 설명
ApplyEdits ( ) : void

메소드 상세

DirCacheEditor() 공개 메소드

Construct a new editor.
public DirCacheEditor ( DirCache dirCache, int entryCount ) : System
dirCache DirCache /// The cache this editor will eventually update. ///
entryCount int /// Estimated number of entries the editor will have upon /// completion. This sizes the initial entry table. ///
리턴 System

add() 공개 메소드

Append one edit command to the list of commands to be applied. Edit commands may be added in any order chosen by the application. They are automatically rearranged by the builder to provide the most efficient update possible.
public add ( PathEdit edit ) : void
edit PathEdit Another edit command.
리턴 void

commit() 공개 메소드

public commit ( ) : bool
리턴 bool

finish() 공개 메소드

public finish ( ) : void
리턴 void