gi-ggit-1.0.15: 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.IndexEntriesResolveUndo

Description

Represents the resolve undo entries in an index object.

Synopsis

Exported types

newtype IndexEntriesResolveUndo Source #

Memory-managed wrapper type.

Methods

Click to display all available methods, including inherited ones

Expand

Methods

get, ref, size, unref.

Getters

getByFile.

Setters

None.

get

indexEntriesResolveUndoGet Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntriesResolveUndo

entries: a IndexEntriesResolveUndo.

-> Word32

idx: the index of the entry.

-> m (Maybe IndexEntryResolveUndo)

Returns: a IndexEntryResolveUndo or Nothing.

Get a IndexEntryResolveUndo by index. Note that the returned IndexEntryResolveUndo is _only_ valid as long as:

1) The associated index has been closed 2) The entry has not been removed (see indexRemove) 3) The index has not been refreshed (see indexRead)

getByFile

indexEntriesResolveUndoGetByFile Source #

Arguments

:: (HasCallStack, MonadIO m, IsFile a) 
=> IndexEntriesResolveUndo

entries: a IndexEntriesResolveUndo.

-> a

file: a File.

-> m (Maybe IndexEntryResolveUndo)

Returns: a IndexEntryResolveUndo or Nothing.

Get an resolve_undo entry specified by path. The returned entry is read only and should not be modified by the caller. If the entry could not be found, Nothing is returned.

ref

indexEntriesResolveUndoRef Source #

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

size

indexEntriesResolveUndoSize Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntriesResolveUndo

entries: a IndexEntriesResolveUndo.

-> m Word32

Returns: the number of entries.

Get the number of IndexEntryResolveUndo entries.

unref

indexEntriesResolveUndoUnref Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> IndexEntriesResolveUndo

entries: a IndexEntriesResolveUndo.

-> m () 

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