gi-ggit-1.0.11: libgit2-glib bindings
CopyrightWill Thompson and Iñaki García Etxebarria
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria
Safe HaskellSafe-Inferred
LanguageHaskell2010

GI.Ggit.Structs.RefSpec

Description

Reprensents a git reference specification.

Synopsis

Exported types

newtype RefSpec Source #

Memory-managed wrapper type.

Constructors

RefSpec (ManagedPtr RefSpec) 

Instances

Instances details
Eq RefSpec Source # 
Instance details

Defined in GI.Ggit.Structs.RefSpec

Methods

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

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

GBoxed RefSpec Source # 
Instance details

Defined in GI.Ggit.Structs.RefSpec

ManagedPtrNewtype RefSpec Source # 
Instance details

Defined in GI.Ggit.Structs.RefSpec

TypedObject RefSpec Source # 
Instance details

Defined in GI.Ggit.Structs.RefSpec

Methods

glibType :: IO GType #

HasParentTypes RefSpec Source # 
Instance details

Defined in GI.Ggit.Structs.RefSpec

IsGValue (Maybe RefSpec) Source #

Convert RefSpec to and from GValue. See toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.RefSpec

type ParentTypes RefSpec Source # 
Instance details

Defined in GI.Ggit.Structs.RefSpec

type ParentTypes RefSpec = '[] :: [Type]

Methods

Click to display all available methods, including inherited ones

Expand

Methods

isForced, ref, unref.

Getters

getDestination, getSource.

Setters

None.

getDestination

refSpecGetDestination Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m (Maybe Text)

Returns: the refspec's destination or Nothing.

Gets the refspec's destination.

getSource

refSpecGetSource Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m (Maybe Text)

Returns: the refspec's source or Nothing.

Gets the refspec's source.

isForced

refSpecIsForced Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m Bool

Returns: if updating is done forcefully.

Whether updating is done forcefully.

ref

refSpecRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m (Maybe RefSpec)

Returns: a RefSpec or Nothing.

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

unref

refSpecUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m () 

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