libgit2

attr

Version:

Attributes specify additional information about how git should handle particular paths - for example, they may indicate whether a particular filter is applied, like LFS or line ending conversions.

Structs

An options structure for querying attributes

Macros

GIT_ATTR_TRUE checks if an attribute is set on

GIT_ATTR_FALSE checks if an attribute is set off

GIT_ATTR_UNSPECIFIED checks if an attribute is unspecified

GIT_ATTR_HAS_VALUE checks if an attribute is set to a value (as opposed to TRUE, FALSE or UNSPECIFIED)

Examine attribute in working directory, then index

Examine attribute in index, then working directory

Examine attributes only in the index

Ignore system attributes

Current version for the git_attr_options structure

Enums

Possible states for an attribute

Callbacks

The callback used with git_attr_foreach

Functions

Return the value type for a given attribute

Look up the value of one git attribute for path

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

Look up a list of git attributes for path

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

Loop over all the git attributes for a path

Loop over all the git attributes for a path with extended options

Flush the gitattributes cache

Add a macro definition