git_attr_foreach

Loop over all the git attributes for a path.

extern (C) nothrow @nogc
int
git_attr_foreach

Parameters

repo libgit2_d.types.git_repository*

The repository containing the path.

flags uint

A combination of GIT_ATTR_CHECK... flags.

path const(char)*

Path inside the repo to check attributes. This does not have to exist, but if it does not, then it will be treated as a plain file (i.e. not a directory).

callback .git_attr_foreach_cb

Function to invoke on each attribute name and value. See git_attr_foreach_cb.

payload void*

Passed on as extra parameter to callback function.

Return Value

Type: int

0 on success, non-zero callback return value, or error code

Meta