Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
Represents the resolve undo entries in an index object.
Synopsis
- newtype IndexEntriesResolveUndo = IndexEntriesResolveUndo (ManagedPtr IndexEntriesResolveUndo)
- noIndexEntriesResolveUndo :: Maybe IndexEntriesResolveUndo
- indexEntriesResolveUndoGet :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> Word32 -> m (Maybe IndexEntryResolveUndo)
- indexEntriesResolveUndoGetByFile :: (HasCallStack, MonadIO m, IsFile a) => IndexEntriesResolveUndo -> a -> m (Maybe IndexEntryResolveUndo)
- indexEntriesResolveUndoRef :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> m (Maybe IndexEntriesResolveUndo)
- indexEntriesResolveUndoSize :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> m Word32
- indexEntriesResolveUndoUnref :: (HasCallStack, MonadIO m) => IndexEntriesResolveUndo -> m ()
Exported types
newtype IndexEntriesResolveUndo Source #
Memory-managed wrapper type.
Instances
BoxedObject IndexEntriesResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntriesResolveUndo boxedType :: IndexEntriesResolveUndo -> IO GType # |
noIndexEntriesResolveUndo :: Maybe IndexEntriesResolveUndo Source #
A convenience alias for Nothing
:: Maybe
IndexEntriesResolveUndo
.
Methods
get
indexEntriesResolveUndoGet Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> Word32 |
|
-> m (Maybe IndexEntryResolveUndo) | Returns: a |
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 #
:: (HasCallStack, MonadIO m, IsFile a) | |
=> IndexEntriesResolveUndo |
|
-> a |
|
-> m (Maybe IndexEntryResolveUndo) | Returns: a |
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 #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> m (Maybe IndexEntriesResolveUndo) | Returns: a |
Atomically increments the reference count of entries
by one.
This function is MT-safe and may be called from any thread.
size
indexEntriesResolveUndoSize Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> m Word32 | Returns: the number of entries. |
Get the number of IndexEntryResolveUndo
entries.
unref
indexEntriesResolveUndoUnref Source #
:: (HasCallStack, MonadIO m) | |
=> IndexEntriesResolveUndo |
|
-> m () |
Atomically decrements the reference count of entries
by one.
If the reference count drops to 0, entries
is freed.