| Copyright | Will Thompson and Iñaki García Etxebarria |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
GI.Ggit.Structs.DiffDelta
Description
Represents the changes done to one file.
Synopsis
- newtype DiffDelta = DiffDelta (ManagedPtr DiffDelta)
- diffDeltaGetFlags :: (HasCallStack, MonadIO m) => DiffDelta -> m [DiffFlag]
- diffDeltaGetNewFile :: (HasCallStack, MonadIO m) => DiffDelta -> m (Maybe DiffFile)
- diffDeltaGetOldFile :: (HasCallStack, MonadIO m) => DiffDelta -> m (Maybe DiffFile)
- diffDeltaGetSimilarity :: (HasCallStack, MonadIO m) => DiffDelta -> m Word32
- diffDeltaGetStatus :: (HasCallStack, MonadIO m) => DiffDelta -> m DeltaType
- diffDeltaRef :: (HasCallStack, MonadIO m) => DiffDelta -> m (Maybe DiffDelta)
- diffDeltaUnref :: (HasCallStack, MonadIO m) => DiffDelta -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq DiffDelta Source # | |
| GBoxed DiffDelta Source # | |
Defined in GI.Ggit.Structs.DiffDelta | |
| ManagedPtrNewtype DiffDelta Source # | |
Defined in GI.Ggit.Structs.DiffDelta Methods toManagedPtr :: DiffDelta -> ManagedPtr DiffDelta | |
| TypedObject DiffDelta Source # | |
Defined in GI.Ggit.Structs.DiffDelta | |
| HasParentTypes DiffDelta Source # | |
Defined in GI.Ggit.Structs.DiffDelta | |
| IsGValue (Maybe DiffDelta) Source # | Convert |
Defined in GI.Ggit.Structs.DiffDelta Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DiffDelta -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DiffDelta) | |
| type ParentTypes DiffDelta Source # | |
Defined in GI.Ggit.Structs.DiffDelta | |
Methods
Click to display all available methods, including inherited ones
getFlags
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffDelta |
|
| -> m [DiffFlag] | Returns: the delta flags |
Gets flags for delta.
getNewFile
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffDelta |
|
| -> m (Maybe DiffFile) | Returns: the delta's new file or |
Gets the new file for delta.
getOldFile
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffDelta |
|
| -> m (Maybe DiffFile) | Returns: the delta's old file or |
Gets the old file for delta.
getSimilarity
diffDeltaGetSimilarity Source #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffDelta |
|
| -> m Word32 | Returns: the delta's similarity. |
Gets the similarity between delta files.
getStatus
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffDelta |
|
| -> m DeltaType | Returns: the delta's status. |
Gets the DeltaType for delta.
ref
Atomically increments the reference count of delta by one.
This function is MT-safe and may be called from any thread.
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffDelta |
|
| -> m () |
Atomically decrements the reference count of delta by one.
If the reference count drops to 0, delta is freed.