| 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.DiffFile
Description
Represents a file in a Diff.
Synopsis
- newtype DiffFile = DiffFile (ManagedPtr DiffFile)
- diffFileGetFlags :: (HasCallStack, MonadIO m) => DiffFile -> m [DiffFlag]
- diffFileGetMode :: (HasCallStack, MonadIO m) => DiffFile -> m Word16
- diffFileGetOid :: (HasCallStack, MonadIO m) => DiffFile -> m (Maybe OId)
- diffFileGetPath :: (HasCallStack, MonadIO m) => DiffFile -> m (Maybe Text)
- diffFileGetSize :: (HasCallStack, MonadIO m) => DiffFile -> m Int64
- diffFileRef :: (HasCallStack, MonadIO m) => DiffFile -> m (Maybe DiffFile)
- diffFileUnref :: (HasCallStack, MonadIO m) => DiffFile -> m ()
Exported types
Memory-managed wrapper type.
Instances
| Eq DiffFile Source # | |
| GBoxed DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile | |
| ManagedPtrNewtype DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile Methods toManagedPtr :: DiffFile -> ManagedPtr DiffFile | |
| TypedObject DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile | |
| HasParentTypes DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile | |
| IsGValue (Maybe DiffFile) Source # | Convert |
Defined in GI.Ggit.Structs.DiffFile Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe DiffFile -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe DiffFile) | |
| type ParentTypes DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile | |
Methods
Click to display all available methods, including inherited ones
getFlags
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffFile |
|
| -> m [DiffFlag] | Returns: the file's flags. |
Gets the GgitDifflags for file.
getMode
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffFile |
|
| -> m Word16 | Returns: the file's mode. |
Gets the mode for file.
getOid
Gets the OId for file.
getPath
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffFile |
|
| -> m (Maybe Text) | Returns: the file's path, or |
Gets the path of file or Nothing if it is unknown.
getSize
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffFile |
|
| -> m Int64 | Returns: the file's size. |
Gets the size for file.
ref
Atomically increments the reference count of file by one.
This function is MT-safe and may be called from any thread.
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => DiffFile |
|
| -> m () |
Atomically decrements the reference count of file by one.
If the reference count drops to 0, file is freed.