git_attr_get_many_ext

Look up a list of git attributes for path with extended options.

extern (C) nothrow @nogc public
int
git_attr_get_many_ext
(
const(char)** values_out
,,,
const(char)* path
,
size_t num_attr
,
const(char)** names
)

Parameters

values_out const(char)**

An array of num_attr entries that will have string pointers written into it for the values of the attributes. You should not modify or free the values that are written into this array (although of course, you should free the array itself if you allocated it).

repo libgit2.types.git_repository*

The repository containing the path.

opts .git_attr_options*

The git_attr_options to use when querying these attributes.

path const(char)*

The 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).

num_attr size_t

The number of attributes being looked up

names const(char)**

An array of num_attr strings containing attribute names.

Return Value

Type: int

0 or an error code.

Meta