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

Description

Represents the changes done to one file.

Synopsis

Exported types

newtype DiffDelta Source #

Memory-managed wrapper type.

Instances

Instances details
Eq DiffDelta Source # 
Instance details

Defined in GI.Ggit.Structs.DiffDelta

IsGValue DiffDelta Source #

Convert DiffDelta to and from GValue with toGValue and fromGValue.

Instance details

Defined in GI.Ggit.Structs.DiffDelta

BoxedObject DiffDelta Source # 
Instance details

Defined in GI.Ggit.Structs.DiffDelta

noDiffDelta :: Maybe DiffDelta Source #

A convenience alias for Nothing :: Maybe DiffDelta.

Methods

Overloaded methods

getFlags

diffDeltaGetFlags Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m [DiffFlag]

Returns: the delta flags

Gets flags for delta.

getNewFile

diffDeltaGetNewFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m (Maybe DiffFile)

Returns: the delta's new file or Nothing.

Gets the new file for delta.

getOldFile

diffDeltaGetOldFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m (Maybe DiffFile)

Returns: the delta's old file or Nothing.

Gets the old file for delta.

getSimilarity

diffDeltaGetSimilarity Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m Word32

Returns: the delta's similarity.

Gets the similarity between delta files.

getStatus

diffDeltaGetStatus Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m DeltaType

Returns: the delta's status.

Gets the DeltaType for delta.

ref

diffDeltaRef Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m (Maybe DiffDelta)

Returns: a DiffDelta or Nothing.

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

unref

diffDeltaUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> DiffDelta

delta: a DiffDelta.

-> m () 

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