gi-ggit-1.0.7: libgit2-glib bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (inaki@blueleaf.cc)
Safe HaskellNone
LanguageHaskell2010

GI.Ggit.Structs.IndexEntriesResolveUndo

Contents

Description

Represents the resolve undo entries in an index object.

Synopsis

Exported types

Methods

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 #

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.