libgit2_d.attr

Undocumented in source.

Members

Aliases

git_attr_foreach_cb
alias git_attr_foreach_cb = int function(const(char)* name, const(char)* value, void* payload)

The callback used with git_attr_foreach.

Enums

git_attr_value_t
enum git_attr_value_t

Possible states for an attribute

Functions

GIT_ATTR_HAS_VALUE
bool GIT_ATTR_HAS_VALUE(const(char)* attr)

GIT_ATTR_HAS_VALUE checks if an attribute is set to a value (as opposed to TRUE, FALSE or UNSPECIFIED). This would be the case if for a file with something like:

GIT_ATTR_IS_FALSE
bool GIT_ATTR_IS_FALSE(const(char)* attr)

GIT_ATTR_FALSE checks if an attribute is set off. In core git parlance, this is the value for attributes that are "Unset" (not to be confused with values that a "Unspecified").

GIT_ATTR_IS_TRUE
bool GIT_ATTR_IS_TRUE(const(char)* attr)

GIT_ATTR_TRUE checks if an attribute is set on. In core git parlance, this the value for "Set" attributes.

GIT_ATTR_IS_UNSPECIFIED
bool GIT_ATTR_IS_UNSPECIFIED(const(char)* attr)

GIT_ATTR_UNSPECIFIED checks if an attribute is unspecified. This may be due to the attribute not being mentioned at all or because the attribute was explicitly set unspecified via the ! operator.

git_attr_add_macro
int git_attr_add_macro(libgit2_d.types.git_repository* repo, const(char)* name, const(char)* values)

Add a macro definition.

git_attr_cache_flush
int git_attr_cache_flush(libgit2_d.types.git_repository* repo)

Flush the gitattributes cache.

git_attr_foreach
int git_attr_foreach(libgit2_d.types.git_repository* repo, uint flags, const(char)* path, .git_attr_foreach_cb callback, void* payload)

Loop over all the git attributes for a path.

git_attr_get
int git_attr_get(const(char)** value_out, libgit2_d.types.git_repository* repo, uint flags, const(char)* path, const(char)* name)

Look up the value of one git attribute for path.

git_attr_get_many
int git_attr_get_many(const(char)** values_out, libgit2_d.types.git_repository* repo, uint flags, const(char)* path, size_t num_attr, const(char)** names)

Look up a list of git attributes for path.

git_attr_value
.git_attr_value_t git_attr_value(const(char)* attr)

Return the value type for a given attribute.

Manifest constants

GIT_ATTR_CHECK_FILE_THEN_INDEX
enum GIT_ATTR_CHECK_FILE_THEN_INDEX;

Check attribute flags: Reading values from index and working directory.

GIT_ATTR_CHECK_INCLUDE_HEAD
enum GIT_ATTR_CHECK_INCLUDE_HEAD;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_ATTR_CHECK_INDEX_ONLY
enum GIT_ATTR_CHECK_INDEX_ONLY;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_ATTR_CHECK_INDEX_THEN_FILE
enum GIT_ATTR_CHECK_INDEX_THEN_FILE;
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
GIT_ATTR_CHECK_NO_SYSTEM
enum GIT_ATTR_CHECK_NO_SYSTEM;

Check attribute flags: controlling extended attribute behavior.

Meta