# Packages
No description provided by the author
# Functions
ApplyPatch applies the patch `p` to the linker `lkr`.
CombineChanges compresses a list of changes (in a lossy way) to one Change.
ConflictStrategyFromString converts a string to a ConflictStrategy.
History returns a list of `nd`'s states starting with the commit in `start` and stopping at `stop`.
MakeDiff show the differences between two linkers.
MakePatch creates a patch with all changes starting from `from`.
NewHistoryWalker will return a new HistoryWalker that will yield changes of `node` starting from the state in `cmt` until the root commit if desired.
NewMapper creates a new mapper object that is capable of finding pairs of nodes between lkrDst and lkrSrc.
ResetNode resets a certain file to the state it had in cmt.
Sync will synchronize the changes from `lkrSrc` to `lkrDst`, according to the options set in `cfg`.
Undelete tries to recover the node pointed to by `root`.
# Constants
ChangeTypeAdd says that the node was initially added after HEAD.
ChangeTypeModify says that the the node was modified after HEAD.
ChangeTypeMove says that the node was moved after HEAD.
ChangeTypeNone means that a node did not change (compared to HEAD).
ChangeTypeRemove says that the node was removed after HEAD.
ConflictStragetyEmbrace takes the version of the remote.
ConflictStragetyIgnore ignores conflicts totally.
ConflictStragetyMarker creates marker files for each conflict.
ConflictStragetyUnknown should be used when the strategy is not clear.
# Structs
Change represents a single change of a node between two commits.
Diff describes a difference between two commits.
DiffPair is a pair of nodes that have a relation in regard of a change.
HistoryWalker provides a way to iterate over all changes a single Node had.
MapPair is a pair of nodes (a file or a directory) One of Src and Dst might be nil: - If Src is nil, the node was removed on the remote side.
Mapper holds the state for the mapping algorithm.
Patch is a set of changes that changed since a certain version of a graph.
SyncOptions gives you the possibility to configure the sync algorithm.
# Type aliases
ChangeType is a mask of possible state change events.
ConflictStrategy defines what conflict strategy to apply in case of nodes with different content hashes.