Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type CommitId = Text
- gitProc :: FilePath -> [String] -> ProcessSpec
- ensureCleanGitRepo :: (MonadIO m, MonadLog Output m, MonadError e m, AsProcessFailure e, MonadFail m, HasCliConfig m, MonadMask m, AsUnstructuredError e) => FilePath -> Bool -> Text -> m ()
- readGitProcess :: (MonadIO m, MonadLog Output m, MonadError e m, AsProcessFailure e, MonadFail m) => FilePath -> [String] -> m Text
- isolateGitProc :: ProcessSpec -> ProcessSpec
- gitProcNoRepo :: [String] -> ProcessSpec
- gitLsRemote :: (MonadIO m, MonadLog Output m, MonadError e m, AsProcessFailure e, MonadFail m, AsUnstructuredError e) => String -> Maybe GitRef -> Maybe String -> m (ExitCode, GitLsRemoteMaps)
- gitLookupDefaultBranch :: GitLsRemoteMaps -> Either Text Text
- gitLookupCommitForRef :: GitLsRemoteMaps -> GitRef -> Either Text CommitId
- data GitRef
Documentation
ensureCleanGitRepo :: (MonadIO m, MonadLog Output m, MonadError e m, AsProcessFailure e, MonadFail m, HasCliConfig m, MonadMask m, AsUnstructuredError e) => FilePath -> Bool -> Text -> m () Source #
Ensure that git repo is clean
readGitProcess :: (MonadIO m, MonadLog Output m, MonadError e m, AsProcessFailure e, MonadFail m) => FilePath -> [String] -> m Text Source #
gitProcNoRepo :: [String] -> ProcessSpec Source #
gitLsRemote :: (MonadIO m, MonadLog Output m, MonadError e m, AsProcessFailure e, MonadFail m, AsUnstructuredError e) => String -> Maybe GitRef -> Maybe String -> m (ExitCode, GitLsRemoteMaps) Source #