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.Structs.RefSpec

Contents

Description

Reprensents a git reference specification.

Synopsis

Exported types

newtype RefSpec Source #

Constructors

RefSpec (ManagedPtr RefSpec) 

Methods

getDestination

refSpecGetDestination Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m Text

Returns: the refspec's destination.

Gets the refspec's destination.

getSource

refSpecGetSource Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> RefSpec

refspec: a RefSpec.

-> m Text

Returns: the refspec's source.

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 RefSpec

Returns: a RefSpec.

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.