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 |
Reprensents a git reference specification.
Synopsis
- newtype RefSpec = RefSpec (ManagedPtr RefSpec)
- refSpecGetDestination :: (HasCallStack, MonadIO m) => RefSpec -> m (Maybe Text)
- refSpecGetSource :: (HasCallStack, MonadIO m) => RefSpec -> m (Maybe Text)
- refSpecIsForced :: (HasCallStack, MonadIO m) => RefSpec -> m Bool
- refSpecRef :: (HasCallStack, MonadIO m) => RefSpec -> m (Maybe RefSpec)
- refSpecUnref :: (HasCallStack, MonadIO m) => RefSpec -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq RefSpec Source # | |
GBoxed RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec | |
ManagedPtrNewtype RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec toManagedPtr :: RefSpec -> ManagedPtr RefSpec | |
TypedObject RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec | |
HasParentTypes RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec | |
IsGValue (Maybe RefSpec) Source # | Convert |
Defined in GI.Ggit.Structs.RefSpec gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe RefSpec -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe RefSpec) | |
type ParentTypes RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec |
Methods
Click to display all available methods, including inherited ones
getDestination
refSpecGetDestination Source #
:: (HasCallStack, MonadIO m) | |
=> RefSpec |
|
-> m (Maybe Text) | Returns: the refspec's destination or |
Gets the refspec
's destination.
getSource
:: (HasCallStack, MonadIO m) | |
=> RefSpec |
|
-> m (Maybe Text) | Returns: the refspec's source or |
Gets the refspec
's source.
isForced
:: (HasCallStack, MonadIO m) | |
=> RefSpec |
|
-> m Bool | Returns: if updating is done forcefully. |
Whether updating is done forcefully.
ref
Atomically increments the reference count of refspec
by one.
This function is MT-safe and may be called from any thread.
unref
:: (HasCallStack, MonadIO m) | |
=> RefSpec |
|
-> m () |
Atomically decrements the reference count of refspec
by one.
If the reference count drops to 0, refspec
is freed.