| 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.DiffFile
Description
Represents a file in a Diff.
Synopsis
- newtype DiffFile = DiffFile (ManagedPtr DiffFile)
- noDiffFile :: Maybe 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.
Constructors
| DiffFile (ManagedPtr DiffFile) |
Instances
| BoxedObject DiffFile Source # | |
Methods
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.