Ggit.Repository.lookup_submodule

### Method

# Ggit Repositorylookup_submodule

#### Declaration [src]

    GgitSubmodule*
    ggit_repository_lookup_submodule (
      GgitRepository* repository,
      const gchar* name,
      GError** error
    )

#### Description [src]

Lookups a submodule information by name or path. If the submodule does not exist, `NULL` is returned and a GGIT_ERROR_NOTFOUND error set.

#### Parameters

`name` | `const gchar*`
| The name of the submodule.
| 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: | `GgitSubmodule`
| A newly-allocated `GgitSubmodule`.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.