git_attr_get_ext

Look up the value of one git attribute for path with extended options.

extern (C) nothrow @nogc public
int
git_attr_get_ext
(
const(char)** value_out
,,,
const(char)* path
,
const(char)* name
)

Parameters

value_out const(char)**

Output of the value of the attribute. Use the GIT_ATTR_... macros to test for TRUE, FALSE, UNSPECIFIED, etc. or just use the string value for attributes set to a value. You should NOT modify or free this value.

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 to check for attributes. Relative paths are interpreted relative to the repo root. The file does not have to exist, but if it does not, then it will be treated as a plain file (not a directory).

name const(char)*

The name of the attribute to look up.

Return Value

Type: int

0 or an error code.

Meta