libgit2

git_apply_flags_t

Version:

Flags controlling the behavior of git_apply.

When the callback:

  • returns < 0, the apply process will be aborted.
  • returns > 0, the hunk will not be applied, but the apply process continues
  • returns 0, the hunk is applied, and the apply process continues.

Values

GIT_APPLY_CHECK
1

Don't actually make changes, just test that the patch applies. This is the equivalent of git apply --check.

Versions