Skip to content
go-libfossil Artifact [6a3c469f89]
Login

Artifact [6a3c469f89]

Artifact 6a3c469f89dc119a923d50a8fc12b666c707bf4a31dd2381c9f6603382acfd5c:


// 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: fossil's line-level merge (merge3.c), byte for byte,
//     with its 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