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

Description

Represents an resolve undo index entry object.

Synopsis

Exported types

Methods

Click to display all available methods, including inherited ones

Expand

Methods

ref, unref.

Getters

getFile, getId, getMode.

Setters

None.

getFile

indexEntryResolveUndoGetFile Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntryResolveUndo

entry: a IndexEntryResolveUndo.

-> m (Maybe File)

Returns: a File or Nothing.

Get the file of the index entry.

getId

indexEntryResolveUndoGetId Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntryResolveUndo

entry: a IndexEntryResolveUndo.

-> Int32

stage: the stage (0, 1 or 2).

-> m (Maybe OId)

Returns: the oid or Nothing.

Get the oid of the index entry.

getMode

indexEntryResolveUndoGetMode Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntryResolveUndo

entry: a IndexEntryResolveUndo.

-> Int32

stage: the stage (0, 1 or 2).

-> m Word32

Returns: the mode.

Get the mode of the index entry. The returned mode contains the modes from stage 1, 2 and 3.

ref

indexEntryResolveUndoRef Source #

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

unref

indexEntryResolveUndoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntryResolveUndo

entry: a IndexEntryResolveUndo.

-> m () 

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