git_merge_driver

Merge driver structure used to register custom merge drivers.

To associate extra data with a driver, allocate extra data and put the git_merge_driver struct at the start of your data buffer, then cast the self pointer to your larger structure when your callback is invoked.

Members

Variables

apply
.git_merge_driver_apply_fn apply;

Called to merge the contents of a conflict. If this function returns git_error_code.GIT_PASSTHROUGH then the default (text) merge driver will instead be invoked. If this function returns git_error_code.GIT_EMERGECONFLICT then the file will remain conflicted.

initialize
.git_merge_driver_init_fn initialize;

Called when the merge driver is first used for any file.

shutdown
.git_merge_driver_shutdown_fn shutdown;

Called when the merge driver is unregistered from the system.

version_
uint version_;

The version should be set to GIT_MERGE_DRIVER_VERSION.

Meta