| Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
|---|---|
| License | LGPL-2.1 |
| Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
| Safe Haskell | None |
| Language | Haskell2010 |
GI.Ggit.Objects.Branch
Description
Represents a branch object.
- newtype Branch = Branch (ManagedPtr Branch)
- class GObject o => IsBranch o
- toBranch :: (MonadIO m, IsBranch o) => o -> m Branch
- noBranch :: Maybe Branch
- branchDelete :: (HasCallStack, MonadIO m, IsBranch a) => a -> m ()
- branchGetName :: (HasCallStack, MonadIO m, IsBranch a) => a -> m 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 Branch
Exported types
Constructors
| Branch (ManagedPtr Branch) |
Methods
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 Text | Returns: the name of the given local or remote branch. (Can throw |
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. (Can throw |
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 Branch | Returns: the new branch. (Can throw |
Moves/renames an existing branch reference.