Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data LintMsg = LintMsg !LintLvl !Int !Text !Text
- data LintLvl
- type GitRef = Text
- type Sh = IO
- silently :: a -> a
- runGit :: FilePath -> Text -> [Text] -> Sh Text
- runGitStdin :: FilePath -> Text -> [Text] -> Text -> Sh Text
- withUtf8 :: Sh a -> Sh a
- gitCatCommit :: FilePath -> GitRef -> Sh (Text, Text)
- gitCatBlob :: FilePath -> GitRef -> Sh Text
- gitNormCid :: FilePath -> GitRef -> Sh GitRef
- gitBranchesContain :: FilePath -> GitRef -> Sh [Text]
- getModules :: FilePath -> GitRef -> Sh [(Text, (Text, Text))]
- gitDiffTree :: FilePath -> GitRef -> Sh (Text, [([(GitType, Text, Char)], (GitType, Text), Text)])
- gitDiffTreePatch :: FilePath -> GitRef -> Text -> Sh Text
- z40 :: GitRef
- data GitType
- cvtMode :: Text -> GitType
- tshow :: Show a => a -> Text
Documentation
gitCatCommit :: FilePath -> GitRef -> Sh (Text, Text) Source #
wrapper around git cat-file commit
Returns (commit-header, commit-body)
gitNormCid :: FilePath -> GitRef -> Sh GitRef Source #
Wrapper around git rev-parse --verify
Normalise git ref to commit sha1
getModules :: FilePath -> GitRef -> Sh [(Text, (Text, Text))] Source #
returns [(path, (url, key))]
may throw exception
gitDiffTree :: FilePath -> GitRef -> Sh (Text, [([(GitType, Text, Char)], (GitType, Text), Text)]) Source #
Possible meanings of the Char
value:
- Added (A),
- Copied (C),
- Deleted (D),
- Modified (M),
- Renamed (R),
- have their type (i.e. regular file, symlink, submodule, ...) changed (T),
- are Unmerged (U),
- are Unknown (X),
- or have had their pairing Broken (B).
Instances
Enum GitType Source # | |
Defined in Linters.Common succ :: GitType -> GitType Source # pred :: GitType -> GitType Source # toEnum :: Int -> GitType Source # fromEnum :: GitType -> Int Source # enumFrom :: GitType -> [GitType] Source # enumFromThen :: GitType -> GitType -> [GitType] Source # enumFromTo :: GitType -> GitType -> [GitType] Source # enumFromThenTo :: GitType -> GitType -> GitType -> [GitType] Source # | |
Show GitType Source # | |
NFData GitType Source # | |
Defined in Linters.Common | |
Eq GitType Source # | |
Ord GitType Source # | |