libgit2

git_checkout_notify_cb

Version:

Checkout notification callback function.

Signature

typedef int git_checkout_notify_cb(git_checkout_notify_t why, const char *path, const git_diff_file *baseline, const git_diff_file *target, const git_diff_file *workdir, void *payload);

Parameters

In
why

the notification reason

const char *
In
path

the path to the file being checked out

In
baseline

the baseline's diff file information

In
target

the checkout target diff file information

In
workdir

the working directory diff file information

void *
In
payload

the user-supplied callback payload

Returns

int

0 on success, or an error code

Versions