public class StrategySimpleTwoWayInCore extends ThreeWayMergeStrategy
The strategy chooses a path from one of the two input trees if the path is unchanged in the other relative to their common merge base tree. This is a trivial 3-way merge (at the file path level only).
Modifications of the same file path (content and/or file mode) by both input trees will cause a merge conflict, as this strategy does not attempt to merge file contents.
OURS, RECURSIVE, RESOLVE, SIMPLE_TWO_WAY_IN_CORE, THEIRS| Modifier | Constructor and Description |
|---|---|
protected |
StrategySimpleTwoWayInCore()
Create a new instance of the strategy.
|
| Modifier and Type | Method and 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.
|
get, get, register, registerprotected StrategySimpleTwoWayInCore()
public String getName()
getName in class MergeStrategypublic ThreeWayMerger newMerger(Repository db)
newMerger in class ThreeWayMergeStrategydb - repository database the merger will read from, and eventually
write results back to.public ThreeWayMerger newMerger(Repository db, boolean inCore)
newMerger in class ThreeWayMergeStrategydb - 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.public ThreeWayMerger newMerger(ObjectInserter inserter, Config config)
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.
newMerger in class MergeStrategyinserter - inserter to write results back to.config - repo config for reading diff algorithm settings.Copyright © 2019 Eclipse JGit Project. All rights reserved.