gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.TreeEntry

Contents

Description

Represents an entry in a tree.

Synopsis

Exported types

newtype TreeEntry Source #

Memory-managed wrapper type.

Instances
BoxedObject TreeEntry Source # 
Instance details

Defined in GI.Ggit.Structs.TreeEntry

noTreeEntry :: Maybe TreeEntry Source #

A convenience alias for Nothing :: Maybe TreeEntry.

Methods

getFileMode

treeEntryGetFileMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m FileMode

Returns: the FileMode of a tree entry.

Gets the FileMode of a tree entry.

getId

treeEntryGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m (Maybe OId)

Returns: a OId or Nothing.

Get the OId of the entry.

getName

treeEntryGetName Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m (Maybe Text)

Returns: the name of the tree entry or Nothing.

Get the name of the tree entry.

getObjectType

treeEntryGetObjectType Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m GType

Returns: a GType.

Get the type of the tree entry object.

ref

treeEntryRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m (Maybe TreeEntry)

Returns: a TreeEntry or Nothing.

Atomically increments the reference count of entry by one. This function is MT-safe and may be called from any thread.

unref

treeEntryUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeEntry

entry: a TreeEntry.

-> m () 

Atomically decrements the reference count of entry by one. If the reference count drops to 0, entry is freed.