libgit2

git_apply_options

Version:

Apply options structure

Initialize with GIT_APPLY_OPTIONS_INIT. Alternatively, you can use git_apply_options_init.

See

  • git_apply_to_tree, git_apply

Signature

typedef struct git_apply_options { unsigned int version git_apply_delta_cb delta_cb git_apply_hunk_cb hunk_cb void *payload unsigned int flags };

Members

unsigned int
version

The version

delta_cb

When applying a patch, callback that will be made per delta (file).

hunk_cb

When applying a patch, callback that will be made per hunk.

void *
payload

Payload passed to both delta_cb & hunk_cb.

unsigned int
flags

Bitmask of git_apply_flags_t

Parameter To

Versions