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.Object

Description

Represents a generic object in a repository.

Synopsis

Exported types

newtype Object Source #

Memory-managed wrapper type.

Constructors

Object (ManagedPtr Object) 

Instances

Instances details
Eq Object Source # 
Instance details

Defined in GI.Ggit.Objects.Object

Methods

(==) :: Object -> Object -> Bool #

(/=) :: Object -> Object -> Bool #

IsGValue Object Source #

Convert Object to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Objects.Object

GObject Object Source # 
Instance details

Defined in GI.Ggit.Objects.Object

Methods

gobjectType :: IO GType #

HasParentTypes Object Source # 
Instance details

Defined in GI.Ggit.Objects.Object

type ParentTypes Object Source # 
Instance details

Defined in GI.Ggit.Objects.Object

class (GObject o, IsDescendantOf Object o) => IsObject o Source #

Type class for types which can be safely cast to Object, for instance with toObject.

Instances

Instances details
(GObject o, IsDescendantOf Object o) => IsObject o Source # 
Instance details

Defined in GI.Ggit.Objects.Object

toObject :: (MonadIO m, IsObject o) => o -> m Object Source #

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

noObject :: Maybe Object Source #

A convenience alias for Nothing :: Maybe Object.

Methods

Overloaded methods

getId

objectGetId Source #

Arguments

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

object: a Object.

-> m (Maybe OId)

Returns: the OId of the object or Nothing.

Gets the OId of object.

getOwner

objectGetOwner Source #

Arguments

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

object: a Object.

-> m (Maybe Repository)

Returns: the Repository that owns this object or Nothing. The returned value must be free'd calling objectUnref.

Gets the Repository that owns object.