Skip to content
go-libfossil Artifact [42df37cabd]
Login

Artifact [42df37cabd]

Artifact 42df37cabd38d36af29e4c86be1c96f794988e6cf31a86bb976bbed02face5ee:


// Package merge provides three-way merge with pluggable strategies.
//
// Register strategies at init time via [Register], then look them up by
// name with [StrategyByName]. The built-in strategies are:
//
//   - ThreeWayText: line-level LCS-based merge with conflict markers
//   - Binary: treats any difference as a conflict
//   - LastWriterWins: always picks the remote side
//   - ConflictFork: creates a fork instead of merging
//
// [FindCommonAncestor] walks the plink DAG to locate the merge base
// for two divergent checkins. [DetectForks] identifies open forks in
// a repository.
package merge