Merge
Merge two Graph files and resolve conflicts.
The merge command resolves conflicts between Graph files during Git merges by performing a semantic merge. It is used internally by Git's merge driver mechanism, but can also be run manually for advanced use cases.
The merge command is designed to work with Git's merge driver mechanism, but can also be used manually for resolving conflicts between Graph files during merge conflicts.
Usage
Description
The merge command performs a semantic three-way merge of the Graph files.
Unlike plain text merges, Git Graph understands the structure of Graph data and can intelligently merge nodes, edges, properties, and labels. To do so, the semantic three-way merge algorithm provides mechanisms to handle conflicts automatically through two main features: predefined resolutions and a global strategy.
Given the base, ours, theirs versions, there are three possible cases when a conflict occurs:
oursandtheirsadded the same property with different values for the same graph element (edge, or node).oursandtheirsmodified the same property with the different values for the same graph element.- One of
oursortheirsmodified a property, and the other removed it.
Options
-
-p, --path <path>Path where the merged result should be written.
-
-b, --base <path>Path to the common base version of the Graph file.
-
-o, --ours <path>Path to
oursversion of the file (usually your local branch). -
-t, --theirs <path>Path to
theirversion of the file (usually the incoming branch). -
-s, --strategy <strategy>(default:none)Merge strategy to apply when resolving conflicts.
Choices:
none,ours,theirsnone: No merge strategy is applied.ours: Prefer values fromoursversion.theirs: Prefer values fromtheirsversion.
-
-r, --resolve-conflicts(default: false)Resolve conflicts using the resolutions file (
<path>.resolutions.json) or the specified strategy. -
-h, --helpDisplay help for the command.
Help
How is this guide?