| License | BSD3 |
|---|---|
| Maintainer | tbidne@gmail.com |
| Safe Haskell | None |
| Language | Haskell2010 |
Git.FastForward.Core.MonadUpdateBranches
Description
The MonadUpdateBranches class.
Synopsis
- class Monad m => MonadUpdateBranches m where
- fetch :: Maybe FilePath -> m ()
- getBranches :: Maybe FilePath -> m LocalBranches
- updateBranch :: Maybe FilePath -> MergeType -> Name -> m UpdateResult
- pushBranches :: Maybe FilePath -> [Name] -> m [UpdateResult]
- checkoutCurrent :: Maybe FilePath -> CurrentBranch -> m ()
- runUpdateBranches :: (MonadReader Env m, MonadLogger m, MonadUpdateBranches m) => m ()
Documentation
class Monad m => MonadUpdateBranches m where Source #
The MonadUpdateBranches class is used to describe updating branches
on a git filesystem.
Methods
fetch :: Maybe FilePath -> m () Source #
Performs fetch.
getBranches :: Maybe FilePath -> m LocalBranches Source #
Retrieves all local branches.
updateBranch :: Maybe FilePath -> MergeType -> Name -> m UpdateResult Source #
Updates a branch by Name, returns the result.
pushBranches :: Maybe FilePath -> [Name] -> m [UpdateResult] Source #
Pushes branches, returns the results.
checkoutCurrent :: Maybe FilePath -> CurrentBranch -> m () Source #
Checks out the passed CurrentBranch.
Instances
runUpdateBranches :: (MonadReader Env m, MonadLogger m, MonadUpdateBranches m) => m () Source #
High level logic of MonadUpdateBranches usage. This function is the
entrypoint for any MonadUpdateBranches instance.