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
Показать файл Открыть проект

Открытые методы

Метод Описание
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