| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Structs.DiffBinary
Description
Represents a diff binary.
- newtype DiffBinary = DiffBinary (ManagedPtr DiffBinary)
- noDiffBinary :: Maybe DiffBinary
- diffBinaryGetNewFile :: (HasCallStack, MonadIO m) => DiffBinary -> m DiffBinaryFile
- diffBinaryGetOldFile :: (HasCallStack, MonadIO m) => DiffBinary -> m DiffBinaryFile
- diffBinaryRef :: (HasCallStack, MonadIO m) => DiffBinary -> m DiffBinary
- diffBinaryUnref :: (HasCallStack, MonadIO m) => DiffBinary -> m ()
Exported types
Methods
getNewFile
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m DiffBinaryFile | Returns: the contents of the new file. |
Gets the DiffBinaryFile new file for binary.
getOldFile
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m DiffBinaryFile | Returns: the contents of the old file. |
Gets the DiffBinaryFile old file for binary.
ref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m DiffBinary | Returns: a |
Atomically increments the reference count of binary by one.
This function is MT-safe and may be called from any thread.
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffBinary |
|
| -> m () |
Atomically decrements the reference count of binary by one.
If the reference count drops to 0, binary is freed.