| 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)
- noRefSpec :: Maybe 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.
Constructors
| RefSpec (ManagedPtr RefSpec) |
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
Atomically increments the reference count of refspec by one.
This function is MT-safe and may be called from any thread.
unref
Arguments
| :: (HasCallStack, MonadIO m) | |
| => RefSpec |
|
| -> m () |
Atomically decrements the reference count of refspec by one.
If the reference count drops to 0, refspec is freed.