Package org.eclipse.jgit.merge
Class StrategyRecursive
- java.lang.Object
-
- org.eclipse.jgit.merge.MergeStrategy
-
- org.eclipse.jgit.merge.ThreeWayMergeStrategy
-
- org.eclipse.jgit.merge.StrategyResolve
-
- org.eclipse.jgit.merge.StrategyRecursive
-
public class StrategyRecursive extends StrategyResolve
A three-way merge strategy performing a content-merge if necessary- Since:
- 3.0
-
-
Field Summary
-
Fields inherited from class org.eclipse.jgit.merge.MergeStrategy
OURS, RECURSIVE, RESOLVE, SIMPLE_TWO_WAY_IN_CORE, THEIRS
-
-
Constructor Summary
Constructors Constructor Description StrategyRecursive()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Get default name of this strategy implementation.ThreeWayMerger
newMerger(ObjectInserter inserter, Config config)
Create a new merge instance.ThreeWayMerger
newMerger(Repository db)
Create a new merge instance.ThreeWayMerger
newMerger(Repository db, boolean inCore)
Create a new merge instance.-
Methods inherited from class org.eclipse.jgit.merge.MergeStrategy
get, get, register, register
-
-
-
-
Method Detail
-
newMerger
public ThreeWayMerger newMerger(Repository db)
Create a new merge instance.- Overrides:
newMerger
in classStrategyResolve
- Parameters:
db
- repository database the merger will read from, and eventually write results back to.- Returns:
- the new merge instance which implements this strategy.
-
newMerger
public ThreeWayMerger newMerger(Repository db, boolean inCore)
Create a new merge instance.- Overrides:
newMerger
in classStrategyResolve
- Parameters:
db
- repository database the merger will read from, and eventually write results back to.inCore
- the merge will happen in memory, working folder will not be modified, in case of a non-trivial merge that requires manual resolution, the merger will fail.- Returns:
- the new merge instance which implements this strategy.
-
newMerger
public ThreeWayMerger newMerger(ObjectInserter inserter, Config config)
Create a new merge instance.The merge will happen in memory, working folder will not be modified, in case of a non-trivial merge that requires manual resolution, the merger will fail.
- Overrides:
newMerger
in classStrategyResolve
- Parameters:
inserter
- inserter to write results back to.config
- repo config for reading diff algorithm settings.- Returns:
- the new merge instance which implements this strategy.
-
getName
public String getName()
Get default name of this strategy implementation.- Overrides:
getName
in classStrategyResolve
- Returns:
- default name of this strategy implementation.
-
-