libgit2

git_merge_driver_init_fn

Version:

Initialize callback on merge driver

Specified as driver.initialize, this is an optional callback invoked before a merge driver is first used. It will be called once at most per library lifetime.

If non-NULL, the merge driver's initialize callback will be invoked right before the first use of the driver, so you can defer expensive initialization operations (in case libgit2 is being used in a way that doesn't need the merge driver).

Signature

typedef int git_merge_driver_init_fn(git_merge_driver *);

Parameters

Versions