git_attr_add_macro

Add a macro definition.

Macros will automatically be loaded from the top level .gitattributes file of the repository (plus the built-in "binary" macro). This function allows you to add others. For example, to add the default macro, you would call:

git_attr_add_macro(repo, "binary", "-diff -crlf");

extern (C) nothrow @nogc public
int
git_attr_add_macro
(,
const(char)* name
,
const(char)* values
)

Parameters

repo libgit2.types.git_repository*

The repository to add the macro in.

name const(char)*

The name of the macro.

values const(char)*

The value for the macro.

Return Value

Type: int

0 or an error code.

Meta