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 |
GI.Ggit.Objects.Branch
Description
Represents a branch object.
Synopsis
- newtype Branch = Branch (ManagedPtr Branch)
- class (GObject o, IsDescendantOf Branch o) => IsBranch o
- toBranch :: (MonadIO m, IsBranch o) => o -> m Branch
- branchDelete :: (HasCallStack, MonadIO m, IsBranch a) => a -> m ()
- branchGetName :: (HasCallStack, MonadIO m, IsBranch a) => a -> m (Maybe Text)
- branchGetUpstream :: (HasCallStack, MonadIO m, IsBranch a) => a -> m (Maybe Ref)
- branchIsHead :: (HasCallStack, MonadIO m, IsBranch a) => a -> m ()
- branchMove :: (HasCallStack, MonadIO m, IsBranch a) => a -> Text -> [CreateFlags] -> m (Maybe Branch)
- branchSetUpstream :: (HasCallStack, MonadIO m, IsBranch a) => a -> Text -> m ()
Exported types
Memory-managed wrapper type.
Instances
Eq Branch Source # | |
GObject Branch Source # | |
Defined in GI.Ggit.Objects.Branch | |
ManagedPtrNewtype Branch Source # | |
Defined in GI.Ggit.Objects.Branch Methods toManagedPtr :: Branch -> ManagedPtr Branch | |
TypedObject Branch Source # | |
Defined in GI.Ggit.Objects.Branch | |
HasParentTypes Branch Source # | |
Defined in GI.Ggit.Objects.Branch | |
IsGValue (Maybe Branch) Source # | Convert |
Defined in GI.Ggit.Objects.Branch Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Branch -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Branch) | |
type ParentTypes Branch Source # | |
Defined in GI.Ggit.Objects.Branch |
class (GObject o, IsDescendantOf Branch o) => IsBranch o Source #
Instances
(GObject o, IsDescendantOf Branch o) => IsBranch o Source # | |
Defined in GI.Ggit.Objects.Branch |
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, delete, deleteLog, forceFloating, freezeNotify, getv, hasLog, isBranch, isFloating, isHead, isNote, isRemote, isTag, lookup, move, notify, notifyByPspec, ref, refSink, rename, resolve, runDispose, stealData, stealQdata, thawNotify, toString, unref, watchClosure.
Getters
getData, getLog, getName, getOwner, getProperty, getQdata, getReferenceType, getShorthand, getSymbolicTarget, getTarget, getUpstream.
Setters
setData, setDataFull, setProperty, setSymbolicTarget, setTarget, setUpstream.
delete
Arguments
:: (HasCallStack, MonadIO m, IsBranch a) | |
=> a |
|
-> m () | (Can throw |
Deletes an existing branch reference.
If the branch is successfully deleted, this object is
not useful anymore and if should be freed with objectUnref
.
getName
Arguments
:: (HasCallStack, MonadIO m, IsBranch a) | |
=> a |
|
-> m (Maybe Text) | Returns: the name of the given local or remote branch or |
Gets the name of the given local or remote branch.
getUpstream
Arguments
:: (HasCallStack, MonadIO m, IsBranch a) | |
=> a |
|
-> m (Maybe Ref) | Returns: the reference supporting the remote tracking branch or |
Gets the reference supporting the remote tracking branch, given a local branch reference.
isHead
Arguments
:: (HasCallStack, MonadIO m, IsBranch a) | |
=> a |
|
-> m () | (Can throw |
Determines if the current local branch is pointed at by HEAD.
move
Arguments
:: (HasCallStack, MonadIO m, IsBranch a) | |
=> a |
|
-> Text |
|
-> [CreateFlags] |
|
-> m (Maybe Branch) |
Moves/renames an existing branch reference.