Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data GitInfo = GitInfo {
- gitHistory :: [Line]
- gitRemoteUrl :: Text
- gitLatestVersion :: Maybe Text
- loadGitLatestTag :: Maybe Text -> IO (Maybe Text)
- loadGitRemoteUrl :: IO Text
- remoteUrlToHttps :: Text -> Text
- loadGitHistory :: Maybe Text -> IO [Line]
- loadGitInfo :: Bool -> Maybe Text -> IO GitInfo
- ppGitInfo :: GitInfo -> Text
Documentation
Information about the state of a git repository.
GitInfo | |
|
loadGitLatestTag :: Maybe Text -> IO (Maybe Text) Source #
Get latest git tag in a given branch (if present).
If no branch is specified then HEAD^
is used.
loadGitRemoteUrl :: IO Text Source #
Get link to origin and strip '.git' to get valid url to project page.
remoteUrlToHttps :: Text -> Text Source #
Change git remote URL so that it can be used in the browser.
>>>
remoteUrlToHttps "git@github.com:GetShopTV/changelogged.git"
"https://github.com/GetShopTV/changelogged"
>>>
remoteUrlToHttps "https://github.com/GetShopTV/changelogged.git"
"https://github.com/GetShopTV/changelogged"
Load git history from a given commit or from the start of the project.