C# Класс GitSharp.Core.Merge.MergeStrategy

A method of combining two or more trees together to form an output tree. Different strategies may employ different techniques for deciding which paths (and ObjectIds) to carry from the input trees into the final output tree.
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Ours MergeStrategy
SimpleTwoWayInCore ThreeWayMergeStrategy
Theirs MergeStrategy

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

Метод Описание
Get ( string name ) : MergeStrategy

Locate a strategy by name.

Get ( ) : GitSharp.Core.Merge.MergeStrategy[]

Get all registered strategies.

NewMerger ( Repository db ) : Merger

Create a new merge instance.

Register ( MergeStrategy imp ) : void

Register a merge strategy so it can later be obtained by name.

Register ( string name, MergeStrategy imp ) : void

Register a merge strategy so it can later be obtained by name.

Приватные методы

Метод Описание
MergeStrategy ( ) : System

Описание методов

Get() публичный статический Метод

Locate a strategy by name.
public static Get ( string name ) : MergeStrategy
name string name of the strategy to locate.
Результат MergeStrategy

Get() публичный статический Метод

Get all registered strategies.
public static Get ( ) : GitSharp.Core.Merge.MergeStrategy[]
Результат GitSharp.Core.Merge.MergeStrategy[]

NewMerger() публичный абстрактный Метод

Create a new merge instance.
public abstract NewMerger ( Repository db ) : Merger
db Repository /// repository database the merger will read from, and eventually /// write results back to. ///
Результат Merger

Register() публичный статический Метод

Register a merge strategy so it can later be obtained by name.
/// a strategy by the same name has already been registered. ///
public static Register ( MergeStrategy imp ) : void
imp MergeStrategy the strategy to register.
Результат void

Register() публичный статический Метод

Register a merge strategy so it can later be obtained by name.
/// a strategy by the same name has already been registered. ///
public static Register ( string name, MergeStrategy imp ) : void
name string /// name the strategy can be looked up under.
imp MergeStrategy the strategy to register.
Результат void

Описание свойств

Ours публичное статическое свойство

Simple strategy that sets the output tree to the first input tree.
public static MergeStrategy,GitSharp.Core.Merge Ours
Результат MergeStrategy

SimpleTwoWayInCore публичное статическое свойство

Simple strategy to merge paths, without simultaneous edits.
public static ThreeWayMergeStrategy,GitSharp.Core.Merge SimpleTwoWayInCore
Результат ThreeWayMergeStrategy

Theirs публичное статическое свойство

Simple strategy that sets the output tree to the second input tree.
public static MergeStrategy,GitSharp.Core.Merge Theirs
Результат MergeStrategy