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 |
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 | |
HasParentTypes Blame Source # | |
Defined in GI.Ggit.Objects.Blame | |
IsGValue (Maybe Blame) Source # | Convert |
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
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, forceFloating, freezeNotify, fromBuffer, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getHunkByIndex, getHunkByLine, getHunkCount, getProperty, getQdata.
Setters
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.