gi-ggit-1.0.1: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.Tree

Contents

Description

Represents a tree object.

Synopsis

Exported types

toTree :: (MonadIO m, IsTree o) => o -> m Tree Source #

Methods

get

treeGet Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a) 
=> a

tree: a Tree.

-> Word32

i: the index of the entry.

-> m TreeEntry

Returns: a TreeEntry.

Get a tree entry by index.

getByName

treeGetByName Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a) 
=> a

tree: a Tree.

-> Text

name: a filename.

-> m TreeEntry

Returns: a TreeEntry.

Get a tree entry by name.

getByPath

treeGetByPath Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a) 
=> a

tree: a Tree.

-> Text

path: a path.

-> m TreeEntry

Returns: a TreeEntry. (Can throw GError)

Retrieves a tree entry contained in a tree or in any of its subtrees, given its relative path.

getId

treeGetId Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a) 
=> a

tree: a Tree.

-> m OId

Returns: a OId.

Get the OId of the tree.

size

treeSize Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a) 
=> a

tree: a Tree.

-> m Word32

Returns: the number of entries in the tree.

Get the number of entries in the tree.

walk

treeWalk Source #

Arguments

:: (HasCallStack, MonadIO m, IsTree a) 
=> a

tree: a Tree.

-> TreeWalkMode

mode: the walking order.

-> TreeWalkCallback

callback: the callback to call for each entry.

-> m ()

(Can throw GError)

Walk all the entries of a tree object recursively (resolving and walking subtrees of the tree as needed). The error will be set to the error returned by callback (if any).