Ggit.Repository.lookup_tree

### Method

# Ggit Repositorylookup_tree

#### Declaration [src]

    GgitTree*
    ggit_repository_lookup_tree (
      GgitRepository* repository,
      GgitOId* oid,
      GError** error
    )

#### Description [src]

Lookups a branch by its name in a repository.

#### Parameters

`oid` | `GgitOId`
| A `GgitOId`.
| The data is owned by the caller of the function.
`error` | `GError **`
| The return location for a `GError*`, or `NULL`.

#### Return value

Returns: | `GgitTree`
| A `GgitTree` pointer.
| The caller of the method takes ownership of the data, and is responsible for freeing it.
| The return value can be `NULL`.