Ggit.Repository.get_attribute

### Method

# Ggit Repositoryget_attribute

#### Declaration [src]

    const gchar*
    ggit_repository_get_attribute (
      GgitRepository* repository,
      const gchar* path,
      const gchar* name,
      GgitAttributeCheckFlags flags,
      GError** error
    )

#### Description [src]

Get the attribute value of the specified attribute for the given file.

#### Parameters

`path` | `const gchar*`
| The relative path to the file.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`name` | `const gchar*`
| The name of the attribute.
| The data is owned by the caller of the function.
| The value is a NUL terminated UTF-8 string.
`flags` | `GgitAttributeCheckFlags`
| A `GgitAttributeCheckFlags`.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `const gchar*`
| The attribute value, or `NULL`.
| The data is owned by the instance.
| The return value can be `NULL`.
| The value is a NUL terminated UTF-8 string.