gi-ggit-1.0.8: libgit2-glib bindings
CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Objects.CommitParents

Description

Represents the parents of a commit object.

Synopsis

Exported types

class (GObject o, IsDescendantOf CommitParents o) => IsCommitParents o Source #

Type class for types which can be safely cast to CommitParents, for instance with toCommitParents.

Instances

Instances details
(GObject o, IsDescendantOf CommitParents o) => IsCommitParents o Source # 
Instance details

Defined in GI.Ggit.Objects.CommitParents

toCommitParents :: (MonadIO m, IsCommitParents o) => o -> m CommitParents Source #

Cast to CommitParents, for types for which this is known to be safe. For general casts, use castTo.

Methods

Overloaded methods

get

commitParentsGet Source #

Arguments

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

parents: a CommitParents.

-> Word32

idx: the parent index.

-> m (Maybe Commit)

Returns: a Commit.

Get the Commit of a parent.

getId

commitParentsGetId Source #

Arguments

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

parents: a CommitParents.

-> Word32

idx: the parent index.

-> m (Maybe OId)

Returns: a OId.

Get the OId of a parent.

getSize

commitParentsGetSize Source #

Arguments

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

parents: a CommitParents.

-> m Word32

Returns: the number of parents.

Get the number of parents in the parents collection.

new

commitParentsNew :: (HasCallStack, MonadIO m, IsCommit a) => a -> m CommitParents Source #

No description available in the introspection data.

Properties

commit

No description available in the introspection data.

constructCommitParentsCommit :: (IsCommitParents o, IsCommit a) => a -> IO (GValueConstruct o) Source #

Construct a GValueConstruct with valid value for the “commit” property. This is rarely needed directly, but it is used by new.

getCommitParentsCommit :: (MonadIO m, IsCommitParents o) => o -> m (Maybe Commit) Source #

Get the value of the “commit” property. When overloading is enabled, this is equivalent to

get commitParents #commit

size

No description available in the introspection data.

getCommitParentsSize :: (MonadIO m, IsCommitParents o) => o -> m Word32 Source #

Get the value of the “size” property. When overloading is enabled, this is equivalent to

get commitParents #size