merge

package
v0.0.0-...-df8a049 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MergeResult

type MergeResult struct {
	// NewHashes are the OIDs that are newly created as a part of the merge operation.
	//
	// These include only the tree hashes that are newly created in the operation. If the
	// resolver creates new blobs or trees, they are not included in this list.
	NewHashes []plumbing.Hash

	FilesPickedEntry1  []string
	FilesPickedEntry2  []string
	FilesPickedEntry12 []string
	FilesConflict      []string

	// Tree is the result of the merge.
	TreeHash plumbing.Hash
}

MergeResult represents the result of a merge operation.

func MergeTree

func MergeTree(
	storage storer.EncodedObjectStorer,
	tree1, tree2 *object.Tree,
	mergeBase *object.Tree,
	conflictResolver resolver,
) (*MergeResult, error)

MergeTree executes a three-way merge of two trees.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL