| 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 |
GI.Ggit.Structs.RefSpec
Description
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 Methods toManagedPtr :: RefSpec -> ManagedPtr RefSpec | |
| TypedObject RefSpec Source # | |
Defined in GI.Ggit.Structs.RefSpec Methods glibType :: IO GType | |
| IsGValue RefSpec Source # | Convert |
Defined in GI.Ggit.Structs.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 #
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RefSpec |
|
| -> m (Maybe Text) | Returns: the refspec's destination or |
Gets the refspec's destination.
getSource
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RefSpec |
|
| -> m (Maybe Text) | Returns: the refspec's source or |
Gets the refspec's source.
isForced
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RefSpec |
|
| -> m Bool | Returns: if updating is done forcefully. |
Whether updating is done forcefully.
ref
Arguments
| :: (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.