Ggit.Submodule.open

### Method

# Ggit Submoduleopen

#### Declaration [src]

    GgitRepository*
    ggit_submodule_open (
      GgitSubmodule* submodule
      GError** error
    )

#### Description [src]

Open the repository for a submodule. Multiple calls to this function will return distinct `GgitRepository` objects. Only submodules which are checked out in the working directory can be opened.

#### Return value

Returns: | `GgitRepository`
| The opened `GgitRepository` or `NULL` in case of an error.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.