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 an annotated commit object.
Synopsis
- newtype AnnotatedCommit = AnnotatedCommit (ManagedPtr AnnotatedCommit)
- annotatedCommitGetId :: (HasCallStack, MonadIO m) => AnnotatedCommit -> m (Maybe OId)
- annotatedCommitNewFromRef :: (HasCallStack, MonadIO m, IsRepository a, IsRef b) => a -> b -> m AnnotatedCommit
- annotatedCommitRef :: (HasCallStack, MonadIO m) => AnnotatedCommit -> m (Maybe AnnotatedCommit)
- annotatedCommitUnref :: (HasCallStack, MonadIO m) => AnnotatedCommit -> m ()
Exported types
newtype AnnotatedCommit Source #
Memory-managed wrapper type.
AnnotatedCommit (ManagedPtr AnnotatedCommit) |
Instances
Eq AnnotatedCommit Source # | |
Defined in GI.Ggit.Structs.AnnotatedCommit (==) :: AnnotatedCommit -> AnnotatedCommit -> Bool (/=) :: AnnotatedCommit -> AnnotatedCommit -> Bool | |
GBoxed AnnotatedCommit Source # | |
Defined in GI.Ggit.Structs.AnnotatedCommit | |
ManagedPtrNewtype AnnotatedCommit Source # | |
Defined in GI.Ggit.Structs.AnnotatedCommit toManagedPtr :: AnnotatedCommit -> ManagedPtr AnnotatedCommit | |
TypedObject AnnotatedCommit Source # | |
Defined in GI.Ggit.Structs.AnnotatedCommit glibType :: IO GType | |
IsGValue AnnotatedCommit Source # | Convert |
Defined in GI.Ggit.Structs.AnnotatedCommit toGValue :: AnnotatedCommit -> IO GValue fromGValue :: GValue -> IO AnnotatedCommit | |
HasParentTypes AnnotatedCommit Source # | |
Defined in GI.Ggit.Structs.AnnotatedCommit | |
type ParentTypes AnnotatedCommit Source # | |
Defined in GI.Ggit.Structs.AnnotatedCommit type ParentTypes AnnotatedCommit = '[] :: [Type] |
Methods
Overloaded methods
getId
:: (HasCallStack, MonadIO m) | |
=> AnnotatedCommit |
|
-> m (Maybe OId) | Returns: the commit ID that the given |
Gets the commit ID that the given annotatedCommit
refs to.
newFromRef
annotatedCommitNewFromRef Source #
:: (HasCallStack, MonadIO m, IsRepository a, IsRef b) | |
=> a |
|
-> b |
|
-> m AnnotatedCommit | Returns: a |
Create a GgitAnnotatedCommit from the given reference
ref
:: (HasCallStack, MonadIO m) | |
=> AnnotatedCommit |
|
-> m (Maybe AnnotatedCommit) | Returns: a newly allocated |
Atomically increments the reference count of annotatedCommit
by one.
This function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> AnnotatedCommit |
|
-> m () |
Atomically decrements the reference count of annotatedCommit
by one.
If the reference count drops to 0, annotatedCommit
is freed.