Safe Haskell | None |
---|---|
Language | Haskell2010 |
Development.GitRev.Utils.Git
Description
Provides utilities for querying git.
Since: 0.1
Synopsis
- data GitError
- gitBranchQ :: Q (Either GitError String)
- gitCommitCountQ :: Q (Either GitError String)
- gitCommitDateQ :: Q (Either GitError String)
- gitDescribeQ :: Q (Either GitError String)
- gitDiffQ :: Q (Either GitError String)
- gitDirtyQ :: Q (Either GitError Bool)
- gitDirtyTrackedQ :: Q (Either GitError Bool)
- gitHashQ :: Q (Either GitError String)
- gitShortHashQ :: Q (Either GitError String)
- gitTreeQ :: Q (Either GitError String)
Documentation
Errors that can be encountered with git.
Since: 0.1
Constructors
GitNotFound | Since: 0.1 |
GitRunError String | Since: 0.1 |
Instances
Exception GitError Source # | Since: 0.1 |
Defined in Development.GitRev.Utils.Git Methods toException :: GitError -> SomeException # fromException :: SomeException -> Maybe GitError # displayException :: GitError -> String # backtraceDesired :: GitError -> Bool # | |
Show GitError Source # | Since: 0.1 |
Eq GitError Source # | Since: 0.1 |
Lift GitError Source # | Since: 0.1 |
gitBranchQ :: Q (Either GitError String) Source #
Returns the current git branch.
Examples
>>>
$$(qToCode gitBranchQ)
Right ...
Since: 0.1
gitCommitCountQ :: Q (Either GitError String) Source #
Returns the git commit count.
Examples
>>>
$$(qToCode gitCommitCountQ)
Right ...
Since: 0.1
gitCommitDateQ :: Q (Either GitError String) Source #
Returns the latest git commit date.
Examples
>>>
$$(qToCode gitCommitDateQ)
Right ...
Since: 0.1
gitDescribeQ :: Q (Either GitError String) Source #
Returns the git description.
Examples
>>>
$$(qToCode gitDescribeQ)
Right ...
Since: 0.1
gitDiffQ :: Q (Either GitError String) Source #
Return the diff of the working copy with HEAD.
Examples
>>>
$$(qToCode gitDiffQ)
Right ...
Since: 0.1
gitDirtyQ :: Q (Either GitError Bool) Source #
Returns the git dirty status.
Examples
>>>
$$(qToCode gitDirtyQ)
Right ...
Since: 0.1
gitDirtyTrackedQ :: Q (Either GitError Bool) Source #
Returns the git dirty status, ignoring untracked files.
Examples
>>>
$$(qToCode gitDirtyTrackedQ)
Right ...
Since: 0.1
gitHashQ :: Q (Either GitError String) Source #
Returns the latest git hash.
Examples
>>>
$$(qToCode gitHashQ)
Right ...
Since: 0.1