libgit2

git_attr_foreach_cb

Version:

The callback used with git_attr_foreach.

This callback will be invoked only once per attribute name, even if there are multiple rules for a given file. The highest priority rule will be used.

See

  • git_attr_foreach.

Signature

typedef int git_attr_foreach_cb(const char *name, const char *value, void *payload);

Parameters

const char *
In
name

The attribute name.

const char *
In
value

The attribute value. May be NULL if the attribute is explicitly set to UNSPECIFIED using the '!' sign.

void *
In
payload

A user-specified pointer.

Returns

int

0 to continue looping, non-zero to stop. This value will be returned from git_attr_foreach.

Parameter To

Versions