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 blame.
Synopsis
- newtype Blame = Blame (ManagedPtr Blame)
- class (GObject o, IsDescendantOf Blame o) => IsBlame o
- toBlame :: (MonadIO m, IsBlame o) => o -> m Blame
- blameFromBuffer :: (HasCallStack, MonadIO m, IsBlame a) => a -> ByteString -> m (Maybe Blame)
- blameGetFlags :: (HasCallStack, MonadIO m) => BlameOptions -> m [BlameFlags]
- blameGetHunkByIndex :: (HasCallStack, MonadIO m, IsBlame a) => a -> Word32 -> m BlameHunk
- blameGetHunkByLine :: (HasCallStack, MonadIO m, IsBlame a) => a -> Word32 -> m BlameHunk
- blameGetHunkCount :: (HasCallStack, MonadIO m, IsBlame a) => a -> m Word32
- blameSetFlags :: (HasCallStack, MonadIO m) => BlameOptions -> [BlameFlags] -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Blame Source # | |
GObject Blame Source # | |
Defined in GI.Ggit.Objects.Blame | |
ManagedPtrNewtype Blame Source # | |
Defined in GI.Ggit.Objects.Blame toManagedPtr :: Blame -> ManagedPtr Blame | |
TypedObject Blame Source # | |
Defined in GI.Ggit.Objects.Blame glibType :: IO GType | |
IsGValue Blame Source # | Convert |
Defined in GI.Ggit.Objects.Blame toGValue :: Blame -> IO GValue fromGValue :: GValue -> IO Blame | |
HasParentTypes Blame Source # | |
Defined in GI.Ggit.Objects.Blame | |
type ParentTypes Blame Source # | |
Defined in GI.Ggit.Objects.Blame |
class (GObject o, IsDescendantOf Blame o) => IsBlame o Source #
Instances
(GObject o, IsDescendantOf Blame o) => IsBlame o Source # | |
Defined in GI.Ggit.Objects.Blame |
Methods
Overloaded methods
fromBuffer
:: (HasCallStack, MonadIO m, IsBlame a) | |
=> a |
|
-> ByteString |
|
-> m (Maybe Blame) |
Get blame data for a file that has been modified in memory. blame
is a
pre-calculated blame for the in-odb history of the file. This means that once
a file blame is completed (which can be expensitve), updating the buffer
blame is very fast.
Lines that differ between the buffer and the committed version are marked as
having a zero id for their ggit_blame_hunk_get_final_commit_id
.
getFlags
:: (HasCallStack, MonadIO m) | |
=> BlameOptions |
|
-> m [BlameFlags] | Returns: a |
Get the blame options flags.
getHunkByIndex
blameGetHunkByIndex :: (HasCallStack, MonadIO m, IsBlame a) => a -> Word32 -> m BlameHunk Source #
No description available in the introspection data.
getHunkByLine
blameGetHunkByLine :: (HasCallStack, MonadIO m, IsBlame a) => a -> Word32 -> m BlameHunk Source #
No description available in the introspection data.
getHunkCount
blameGetHunkCount :: (HasCallStack, MonadIO m, IsBlame a) => a -> m Word32 Source #
No description available in the introspection data.
setFlags
:: (HasCallStack, MonadIO m) | |
=> BlameOptions |
|
-> [BlameFlags] |
|
-> m () |
Set the blame options flags.