Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria |
Safe Haskell | None |
Language | Haskell2010 |
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 toManagedPtr :: DiffFile -> ManagedPtr DiffFile | |
TypedObject DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile glibType :: IO GType | |
IsGValue DiffFile Source # | Convert |
Defined in GI.Ggit.Structs.DiffFile toGValue :: DiffFile -> IO GValue fromGValue :: GValue -> IO DiffFile | |
HasParentTypes DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile | |
type ParentTypes DiffFile Source # | |
Defined in GI.Ggit.Structs.DiffFile type ParentTypes DiffFile = '[] :: [Type] |
Methods
Overloaded methods
getFlags
Gets the GgitDifflags
for file
.
getMode
Gets the mode for file
.
getOid
:: (HasCallStack, MonadIO m) | |
=> DiffFile |
|
-> m (Maybe OId) | Returns: the file's |
Gets the OId
for file
.
getPath
:: (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
Gets the size for file
.
ref
:: (HasCallStack, MonadIO m) | |
=> DiffFile |
|
-> m (Maybe DiffFile) | Returns: a |
Atomically increments the reference count of file
by one.
This function is MT-safe and may be called from any thread.