| Access | Constructor and Description |
|---|---|
| protected | ThreeWayMerger(Repository
the repository this merger will read and write data on. local)Create a new merge instance for a repository. |
| protected | ThreeWayMerger(Repository
the repository this merger will read and write data on. local, boolean perform the merge in core with no working folder involved inCore)Create a new merge instance for a repository. |
| protected | ThreeWayMerger(ObjectInserter
the inserter to write objects to. inserter)Create a new in-core merge instance from an inserter. |
| Modifier and Type | Method and Description |
|---|---|
| public ObjectId | getBaseCommitId()
Implements abstract org. Get the ID of the commit that was used as merge base for merging |
| public boolean | merge(AnyObjectId...
source trees to be combined together. The merge base is not
included in this set. tips)Overrides org. Merge together two or more tree-ish objects. |
| protected AbstractTreeIterator | Returns: an iterator over the caller-specified merge base, or the natural merge base of the two input commits.Create an iterator to walk the merge base. |
| public void | setBase(AnyObjectId
common base treeish; null to automatically compute the common
base from the input commits during
id)merge(AnyObjectId..Set the common ancestor tree. |
| baseCommitId | back to summary |
|---|---|
| private ObjectId baseCommitId | |
| baseTree | back to summary |
|---|---|
| private RevTree baseTree | |
| ThreeWayMerger | back to summary |
|---|---|
| protected ThreeWayMerger(Repository local) Create a new merge instance for a repository.
| |
| ThreeWayMerger | back to summary |
|---|---|
| protected ThreeWayMerger(Repository local, boolean inCore) Create a new merge instance for a repository.
| |
| ThreeWayMerger | back to summary |
|---|---|
| protected ThreeWayMerger(ObjectInserter inserter) Create a new in-core merge instance from an inserter.
| |
| getBaseCommitId | back to summary |
|---|---|
| public ObjectId getBaseCommitId() Implements abstract org. Doc from org. Get the ID of the commit that was used as merge base for merging | |
| merge | back to summary |
|---|---|
| public boolean merge(AnyObjectId... tips) throws IOException Overrides org. Doc from org. Merge together two or more tree-ish objects. Any tree-ish may be supplied as inputs. Commits and/or tags pointing at trees or commits may be passed as input objects.
| |
| mergeBase | back to summary |
|---|---|
| protected AbstractTreeIterator mergeBase() throws IOException Create an iterator to walk the merge base.
| |
| setBase | back to summary |
|---|---|
| public void setBase(AnyObjectId id) throws MissingObjectException, IncorrectObjectTypeException, IOException Set the common ancestor tree.
| |