Ggit.Index.add_path

### Method

# Ggit Indexadd_path

#### Declaration [src]

    gboolean
    ggit_index_add_path (
      GgitIndex* idx,
      const gchar* path,
      GError** error
    )

#### Description [src]

Add a file to the index by path. You can specify both relative paths (to the working directory) and absolute paths. Absolute paths however must reside in the working directory. The specified path must exist and must be readable.

#### Parameters

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

#### Return value

Returns: | `gboolean`
| `TRUE` if the file was added to the index or `FALSE` if there was an error.