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 |
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 toManagedPtr :: Branch -> ManagedPtr Branch | |
TypedObject Branch Source # | |
Defined in GI.Ggit.Objects.Branch glibType :: IO GType | |
IsGValue Branch Source # | Convert |
Defined in GI.Ggit.Objects.Branch toGValue :: Branch -> IO GValue fromGValue :: GValue -> IO Branch | |
HasParentTypes Branch Source # | |
Defined in GI.Ggit.Objects.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
Overloaded methods
delete
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
:: (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
:: (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
Determines if the current local branch is pointed at by HEAD.
move
:: (HasCallStack, MonadIO m, IsBranch a) | |
=> a |
|
-> Text |
|
-> [CreateFlags] |
|
-> m (Maybe Branch) | Returns: the new branch or |
Moves/renames an existing branch reference.