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 |
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 glibType :: IO GType | |
IsGValue RefSpec Source # | Convert |
Defined in GI.Ggit.Structs.RefSpec toGValue :: RefSpec -> IO GValue fromGValue :: GValue -> IO RefSpec | |
HasParentTypes RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec | |
type ParentTypes RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec type ParentTypes RefSpec = '[] :: [Type] |
Methods
Overloaded methods
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
:: (HasCallStack, MonadIO m) | |
=> RefSpec |
|
-> m (Maybe RefSpec) | Returns: a |
Atomically increments the reference count of refspec
by one.
This function is MT-safe and may be called from any thread.