| 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 |
GI.Ggit.Structs.IndexEntryResolveUndo
Description
Represents an resolve undo index entry object.
Synopsis
- newtype IndexEntryResolveUndo = IndexEntryResolveUndo (ManagedPtr IndexEntryResolveUndo)
- noIndexEntryResolveUndo :: Maybe IndexEntryResolveUndo
- indexEntryResolveUndoGetFile :: (HasCallStack, MonadIO m) => IndexEntryResolveUndo -> m (Maybe File)
- indexEntryResolveUndoGetId :: (HasCallStack, MonadIO m) => IndexEntryResolveUndo -> Int32 -> m (Maybe OId)
- indexEntryResolveUndoGetMode :: (HasCallStack, MonadIO m) => IndexEntryResolveUndo -> Int32 -> m Word32
- indexEntryResolveUndoRef :: (HasCallStack, MonadIO m) => IndexEntryResolveUndo -> m (Maybe IndexEntryResolveUndo)
- indexEntryResolveUndoUnref :: (HasCallStack, MonadIO m) => IndexEntryResolveUndo -> m ()
Exported types
newtype IndexEntryResolveUndo Source #
Memory-managed wrapper type.
Constructors
| IndexEntryResolveUndo (ManagedPtr IndexEntryResolveUndo) |
Instances
| BoxedObject IndexEntryResolveUndo Source # | |
Defined in GI.Ggit.Structs.IndexEntryResolveUndo Methods boxedType :: IndexEntryResolveUndo -> IO GType # | |
noIndexEntryResolveUndo :: Maybe IndexEntryResolveUndo Source #
A convenience alias for Nothing :: Maybe IndexEntryResolveUndo.
Methods
getFile
indexEntryResolveUndoGetFile Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexEntryResolveUndo |
|
| -> m (Maybe File) |
Get the file of the index entry.
getId
indexEntryResolveUndoGetId Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexEntryResolveUndo |
|
| -> Int32 |
|
| -> m (Maybe OId) | Returns: the oid or |
Get the oid of the index entry.
getMode
indexEntryResolveUndoGetMode Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexEntryResolveUndo |
|
| -> Int32 |
|
| -> 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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => IndexEntryResolveUndo |
|
| -> m (Maybe IndexEntryResolveUndo) | Returns: a |
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 |
|
| -> m () |
Atomically decrements the reference count of entry by one.
If the reference count drops to 0, entry is freed.